Train X is traveling at a constant speed of 30 miles per hour and Train Y is traveling at a constant speed of 40 miles per hour.
If the two trains are traveling in the same direction along the same route but Train X is 25 miles ahead of Train Y, how many hours will it be until Train Y is 10 miles ahead of Train X?