4 rooms,6 persons
each room: at least 1, at most 2 persons
To find: the number of ways to accommodate all 6 persons
x rooms have 2,4−x have 1
2x+(4−x)=6 ⇒ x=2
so 2 rooms of 2 and 2 rooms of 1
(24)=6 ways to pick the two double rooms
line up the 6 persons:6! orders
first 2→room 1, next 2→room 2, last 2→rooms 3,4
2!2!6! ways to fill the rooms (rooms fixed)
2!2!6!=4720=180
6×180=1080
Answer: 1080