a car averages 30 miles per hour for the first 5 hours of a trip and averages 42 miles per hour for the rest of the trip . if the average speed for the entire trip is 34 miles per hour , how many hours long is the trip ?