A train and a car are traveling towards each other from two different cities, City A and City B, respectively. The train travels at a constant speed of 80 kilometers per hour, while the car travels at a speed of 60 kilometers per hour. When they meet, the ratio of the distances traveled by the train and the car is 4:3. What is the distance between City A and City B? Let's think step by step and output the final answer within \boxed{}.
user