.
If the average speed is 50 mph during the 3-hours trip, then the total distance is (2+1)*50 = 150 miles.
In 2 hours, he just covered 2*40 = 80 miles.
Hence, he should cover the rest 150-80 = 70 miles in the last, third hour.
ANSWER. He should drive at 70 mph.