Every high school in the city of Euclid sent a team of 3 students to a math contest. Each participant in the contest received a different score. Andrea's score was the median among all students, and hers was the highest score on her team. Andrea's teammates Beth and Carla placed 37th and 64th, respectively. How many schools are in the city?

Let's think step by step and output the final answer within \boxed{}.
user