From the 10 male and 7 female sales representatives for an insurance company, a team of 4 men and 4 women will be selected to attend a national conference on insurance fraud. In how many ways can the team of 8 be selected?