There are 40 girls and 32 boys who want to participate in the relay race. If each team must have the same number of girls and boys, what is the greatest number of teams that can race? How many boys and girls will be on each team?