Complex sentence: Nine relay races were run and only two teams were in each race, four of which were high school and prep school races.
Split into simpler sentences: Nine relay races were run and only two teams were in each race. Four of which were high school and prep school races.