In a school table tennis league each team plays each of the other teams twice during the year once at home and once away if there are 30 matches in total during the season how many teams are there in the table tennis league