A boat traveled at an average speed of 27 miles per hour for 2 hours after first leaving the dock and then traveled at an average speed of 65 miles per hour for 4.5 hours. What is the total distance in miles the boat traveled?

A. 98.5 miles
B. 54 miles
C. 346.5 miles
D. 292.5 miles​