You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: a team won 50 percent of its first 60 games in a particular season , and 80 percent of its remaining games . if the team won a total of 70 percent of its games that season , what was the total number of games that the team played ?
Output:
18