Train A travelled from City X to City Y at a speed of 80 km/h. At the same time, Train B travelled from City Y to City X at a speed of 60 km/h. Train A had travelled 30 km more than Train B when the two trains passed each other. What is the distance between City X and Y?