Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: a car averages 30 miles per hour for the first 5 hours of a trip and averages 42 miles per hour for each additional hour of travel time . if the average speed for the entire trip is 38 miles per hour , how many hours long is the trip ?
Output:
15