contestada

WILL GIVE BRAINLIEST!
Use the formula N = t2 − t/2, where N is the number of basketball games that must be scheduled in a league with t teams if each team is to play every other team once.
A league has 45 games scheduled. How many teams are in the league if each team plays every other team once?
teams