There are 18 girls and 24 boys who want to praticipate in a triva challenge. If each team must have the same number of girls and boys, what is the greatest number of teams that can enter? How many boys and girls will be on each team?