Hi, Assuming order is important men 10P5 = 30,240 ways remaining 5 rooms for women: 5P5 = 120ways 30, 360 ways total to assign five of them to five man and remaining 5 to 5 women.