Write the number of ways in which 5 boys and 3 girls can be seated in a row so that each girl is between 2 boys.
5 boys can be seated in 5! ways to sit in a row. Now, we can place 3 girls in 4 empty seats between them so that each girl is between 2 boys, and this can be done in 4P3 = 24 ways.
As, the operations are dependent, so, the number of ways in which 5 boys and 3 girls can be seated in a row so that each girl is between 2 boys
= 2880.
The discussion can be shown pictorially as:
[X = 4 empty seats between 2 boys(B)]