__ B1 __ B2 __ B3 __ B4 __ B5 __ B6 __
6 boys can be arranged in 6! ways.
4 girls can be arranged in these 7 blank spaces in 7C4×4! ways.
∴m=6!×7C4×4!
__ G1 __ G2 __ G3 __ G4 __
4 girls can be arranged in 4! ways.
2 boys can be selected in 6C2 ways.
6 boys can be arranged in these 5 blank spaces in 5!×6C2×2 ways.
∴n=5!×6C2×2×4!
Hence, mn=6!×7C4×4!5!×6C2×2×4!=7