You can
put this solution on YOUR website!Your answer to (a) looks correct.
As to (b), the only way the men and women can alternate is if
women are at both ends. If you try putting a man at one end, you
end up putting 2 women together. So it goes
W M W M W M W M W
There are 5 possible ways to put a woman in the 1st position
There are 4 possible ways to put a man in the 2nd position
There are 4 possible ways to put a woman in the 3rd position
There are 3 possible ways to put a man in the 4th position
There are 3 possible ways to put a woman in the 5th position
There are 2 possible ways to put a man in the 6th position
There are 2 possible ways to put a woman in the 7th position
There is 1 possible way to put a man in the 8th position
There is 1 possible way to put a woman in the 9th position
The product of all the possibilities is the answer

answer
(c) If the women and men are grouped together, It looks like

possible ways to arrange the men and

possible ways to arrange the women
All the possible combos is the product

But this isn't the final answer. For every combo, the group
of men can be on the left or the right, so I think the
correct answer is

And (d) is the

because you can't interchange the
groups of men and women.