# How many different ways are there for eight men and five women to stand in a line so that no two women stand next to each other? [closed]

How many different ways are there for eight men and five women to stand in a line so that no two women stand next to each other?

I have the answer as $P(8,8) \cdot P(9,5)$

But how is $P(9,5)$ possible?

Please, anyone explain this to me.

## closed as off-topic by Namaste, Isaac Browne, Leucippus, Saad, ShaileshApr 24 '18 at 2:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Namaste, Isaac Browne, Leucippus, Saad, Shailesh
If this question can be reworded to fit the rules in the help center, please edit the question.

We can line up the eight men in $P(8, 8)$ ways. This creates nine spaces, seven between successive males and two at the ends of the row. $$\square M \square M \square M \square M \square M \square M \square M \square M \square$$ To ensure that the women are separated, we must place the five women in five of those nine spaces, which can be done in $P(9, 5)$ ways.
Another way to think about it: To ensure that the women are separated, we choose five of the nine spaces in which to place a woman, which can be done in $\binom{9}{5}$ ways. The five women can then be arranged in those spaces in $5!$ ways. Hence, the number of ways the women can be placed in the line once the men have been arranged is $$\binom{9}{5}5! = \frac{9!}{5!4!} \cdot 5! = \frac{9!}{4!} = \frac{9!}{(9 - 5)!} = P(9, 5)$$
You have $9$ boxes (position in the male line). How many ways do you have to place 5 balls (women) in distinct boxes (such that there is at most 1 ball per box).
i.e how many way do you have to pick $5$ distinct numbers (the box numbers for the 5 females) from $9$ numbers (all the possible position) ? $9\choose5$