Number of ways of selecting a man and a woman for a team from 15 men and 15 women =15×15=(15)2 Number of ways of selecting a man and a woman for next team out of the remaining 14 men and 14 women. =14×14=(14)2 Similarly for other teams Hence required number of ways =(15)2+(14)2+....+(1)2=