Sarah wants to travel from City A to City B, a distance of 480 kilometers. She plans to drive part of the way and then take a train for the rest of the journey. She drives at a speed of 80 kilometers per hour, and the train travels at 120 kilometers per hour. If her total travel time is 5 hours, how much distance does she cover by driving and by taking the train? Let's think step by step and output the final answer within \boxed{}.
user