David drives from City A to City B, a distance of 180 km. For the first half of the distance, he drives at an average speed of 60 km/h. For the second half of the distance, he drives at an average speed of 90 km/h. What is David's average speed for the entire trip? Let's think step by step and output the final answer within \boxed{}.
user