The local recreation center held a scavenger hunt. There were 15 boys and 9 girls at the event. The group was divided into the greatest number of teams possible with the same number of boys on each team and the same number of girls on each team. How many teams were made if each person was on a team?