It takes A 5 hours to travel the distance travelled by B in
8 hours. thus, we can conclude that
speed of A : speed of B = 8 : 5
Let the speed of A be 8u and that of B be 5u
Distance between X and Y = 8u x 13 = 104u (speed of A x
13hours)
In 13 hours, B has travelled 5u x 13 = 65u, which is still 150km
less than 104u.
Thus, 104u - 65u =150
39u =150
1u = 50/13
Distance between X and Y = 104u = 50/13 x 104 = 400km