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.
Five boys can be arranged amongst themselves in 5! ways, at the places shown above.
The three girls are now to be arranged in the remaining four places taken three at a time = P = 4!
By fundamental principle of counting, total number of ways = 5!4! = 12024 = 2880