A train travels 402 miles in the first 6 hours then it travels 497 miles in the next 7 hours. What is the average speed of the train?