A basketball league plays a total of 90 games. How many teams are in the league if each team plays every other team twice?