A train Traveled from hong kong to beijing. It traveled at an average speed of 160 km/h in the first four hours. After that, it traveled at another average speed of 180 km/h. If the distance between hong kong to beijing is 1180 km, what was the total time for the whole journey