Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: a car gets 40 kilometers per gallon of gasoline . how many gallons of gasoline would the car need to travel 120 kilometers ?
Output:
3