I'm given the following problem
An elevator starts at the basement with 8 people (not including the elevator operator) and discharges them all by the time it reaches the top floor, number 6. In how many ways could the operator have perceived the people leaving the elevator if all people look alike to him? What if the 8 people consisted of 5 men and 3 women and the operator could tell a man from a woman?
The first part I was able to get. If there are 8 people with 6 floors, there are 5 "divisions", if you draw it out. i.e. |1|2|3|4|5|6|. There are 5 "divisions," if you exclude the edges.
This means that we can treat this like a permutation problem with letters, to my understanding. If P represents person and D represents divisions, we have PPPPPPPPDDDDD. By the counting principle, we can say that there are $$\frac{13!}{8! * 5!}$$ possibilities, given that there are 8 repeated "P"s and 5 repeated "D"s, this makes sense. This is equivalent to C(13, 8). My book tells me this is the right answer.
Now, looking at the solution for the second part, I apply the same logic. There are 5 men and 3 women. Therefore we have MMMMMWWWDDDDDD. Therefore, there are $$\frac{13!}{3! * 5! * 5!}$$
However, this gives me an incorrect result. How do I solve it correctly, and why doesn't my solution work?