I am up to the worst thing in math IMO. So if anyone could help it would be appreciated.

======================

In how many ways can four men and four women be seated in a row of eight seats if:

(a) The women are to be seated together, and the men are to be seated together?

(b) They are to be seated alternately by gender.

======================

In how many ways can four men and four women be seated in a row of eight seats if:

(a) The women are to be seated together, and the men are to be seated together?

(b) They are to be seated alternately by gender.