Question 15
Exercise 7. Nine students, including four girls and five boys are arranged in a row. The teacher wants to arrange them such that no two consecutive students are of the same sex. How many ways can the teacher do that?
**Editorial input convention:** Treat all nine students as distinct and count left-to-right orders separately.
**Editorial input convention:** Treat all nine students as distinct and count left-to-right orders separately.