Mr. Ben drove from Town A to Town B. For the first 3 hours, he traveled at an average speed of 60 km/h, and after that, he drove at another average speed of 70 km/h. If the distance between Town A and B is 460 km, what was the total time for the whole journey?