In how many ways can 4 boys be allotted 3 different rooms such that none of the rooms are empty and all the 4 boys are accommodated?	Choose the correct choice from the following.
A) 15
B) 24
C) 18
D) 20
E) 22
3 boys can be selected from 4 boys in 4C3 ways = 4   3 boys can be arranged in 3 rooms in 3! ways   and since 1 boy has to share a room with one of the 3 boys, therefore total ways = 1! = 1   Hence total number of ways in which allocation can be done = 4C3 * 3! * 1! = 4*1*3! = 24   answer is 24
<result>B</result>
In how many ways can 4 boys be allotted 3 different rooms such that none of the rooms are empty and all the 4 boys are accommodated?