Two trains, Train X and Train Y, depart from two different stations at 7 a.m. They travel towards each other and meet halfway along their journey. After meeting, they continue to their respective destinations along the same route, and each reaches its destination at 12 p.m. Train X travels at a speed of 50 kilometers per hour and Train Y travels at a speed of 60 kilometers per hour. What is the distance between the two stations? (The time taken to switch trains is not considered) Let's think step by step and output the final answer within \boxed{}.
user