n: 5 boys, 5 girls, all 5 girls consecutive
m: 5 boys, 5 girls, exactly 4 girls consecutive
To find: nm
Plan: 1. n;2. m (runs 4+1);3. m/n
Glue all 5 girls into one block: 5+1=6 units
n=6!×5!
n=6!×5!=720×120=86400
Choose 4 of 5 girls and arrange: (45)×4!=5×24=120
Exactly 4⇒girls form two runs: 4+1
the single girl must not touch the 4-block
5!=120⇒6 gaps
6×5=30 ways to place the block and the single girl
m=5!×(45)×4!×(6×5)
m=120×120×30=432000
nm=86400432000=5
5