A train travels from City A to City B, which is 180 miles away, at an average speed of 60 miles per hour. The train stops at City C, halfway between City A and City B, for 30 minutes. After leaving City C, it continues to City B at an average speed of 45 miles per hour. How long does the entire journey from City A to City B take, including the stop at City C? Let's think step by step and output the final answer within \boxed{}.
user