The first step we need to solve this problem is to calculate the time it took to complete each part of the trip. This is done by subtracting the start time from the arrival time plus 12.
Now we need to multiply the times by the average speed:
Now we need to add the two distances:
The total distance is 39 miles.