A delivery driver makes a trip that consists of two parts. For the first 2 hours, the driver travels at an average speed of 40 miles per hour. For the remaining 3 hours of the trip, the driver travels at an average speed of 30 miles per hour. What is the total distance, in miles, of the driver's trip?