Between the two stations, a train uniformly accelerates from rest at first, then moves with constant velocity and finally decelerates uniformly to come to rest. If the ratio of the time taken is 1:8:1 and the maximum speed attained is 60 km/h, then what is the average speed over the whole journey?