Team one has one quarter the number of people as team two. After 6 people quit team two and 12 other people are transferred from team two to team one, the number of people on each team is equal. How many people were originally on team one?