Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: there are 8 teams in a certain league and each team plays each of the other teams exactly once . if each game is played by 2 teams , what is the total number of games played ?
