The family trip to Grandma's consisted of both a train ride and a car ride. The average speed of the train ride was 72 miles per hour, and the average speed of the car ride was 62 miles per hour. The entire trip lasted 6 hours.
Let x be the number of hours the train ride lasted. Write an expression for the total distance of the trip, in miles.