We can solve it by treating the arrangement of men and women separately, calculating the permutations for each group, and then multiplying the results together.