The number of ways, of forming a queue of 4 boys and 3 girls such that all the girls are not together, is :
Total number of persons = 4 boys + 3 girls = 7.
Step 1 : Total possible queues without any restriction
Arranging 7 distinct persons in a line gives ways.
Step 2 : Arrangements where all three girls stand together
Treat the 3 girls as one single block G.
Then we have: G (one block) + 4 individual boys total units = 5.
These 5 units can be permuted in ways.
Within the girls’ block, the 3 girls can be ordered among themselves in ways.
Hence, arrangements with all girls together = .
Step 3 : Required arrangements (girls not all together)
Required count = (all possible arrangements) − (arrangements with girls together)
Hence, the number of ways to form the queue so that the three girls are not all together is .
Option D which is:
Tagged Arrangements with restrictions. Machine-assigned, so read it as a strong shortlist rather than a verdict.