Let n be the number of ways in which 5 boys and 5 girls can stand in a queue in such a way that all the girls stand consecutively in the queue. Let m be the number of ways in which 5 boys and 5 girls can stand in a queue in such a way that exactly four girls stand consecutively in the queue.
Then the value of mn is
n=5!×6!
For second arrangement, 5 boys can be made to stand in a row in 5! ways, creating 6 alternate space for 4 girls. A group of 4 girls can be selected in5C4ways.
A group of 4 and single girl can be arranged at 2 places out of 6 in 6P2 ways. Also 4 girls can arrange themselves in 4! ways.
∴m=5!× 6P2× 5C4×4!mn=5!×6×5×5×4!5!×6!=5