A class of 40 students must form groups of five for a class project. There are 24 women and 16 men in the class and each group must include 3 women and 2 men. In how many ways can the groups be made?

The answer is 242,880 but I haven't clue on how to set this up