The two trains pass each other at a small town called Xanadu. From there, Train A takes another 5 hours to reach Imogene, while Train B takes another 10 hours to reach Abilene.
The next day, Train A embarks on the return trip to Abilene at the exact same time Train B leaves for Imogene. This time, they pass each other at a small town called Yonkers, whereby Train A takes another 5 hours to reach Abilene while Train B takes another 10 hours to reach Imogene.
If the distance between Yonkers and Xanadu is 500 miles, then how fast is each train traveling?