7 women and 10 men are on the faculty in the mathematics department at a school. how many ways are there to select a committee of five members of the department if at least one woman and at least one man must be on the committee?