The sixth-grade class is competing in the school field day. There are 32 girls and 40 boys who want to participate. Each team must have the same number of girls and boys. What is the greatest number of teams that can be formed? How many boys and how many girls will be on each team?