there are 24 baseball teams in a league. each team plays two matches against each of the other teams, work out the total number of matches played