Problem: $10$ people are standing in a queue when three new checkouts open. 8 people rush to the new checkouts and the new queues end up with at least two people in each.
In how many ways can the three new queues be formed?
Solution:
We are told that $q_1 + q_2 + q_3 = 8$ and that $q_i \geq 2$, where $q$ is short for queue.
This leaves six possibilities:
$$(q_1, q_2, q_3) \in \{(2,2,4), (2,3,3), (2,4,2), (3, 2, 3), (3, 3, 2), (4, 2, 2)\}$$
No matter what the triple $(q_1, q_2, q_3)$ is, we can imagine filling the three queues by first choosing eight people in order, in $P(10, 8)$ ways, and then placing the first $q_1$ people in the first quene, the second $q_2$ people in the second queue and the remaining $q_3$ people in the third queue.
This means that the total number of possibilities for the three queues are $6 \cdot P(10, 8)$.
Is this solution correct? And if the numbers and constraints gets messier is there a more elegant way to solve this?
(The different checkouts are distinguishable)