A train traveled the first 200 miles of its trip at a speed of 50 mph and the next 130 miles at a speed of 65 mph. What was the average speed of the train during the whole trip?