hello
there are two trains i.e train A and train B
train A can travel from point x to point y in 3 1/3 hours
train B can travel cover that distance in 2 4/5 hours
let's convert the values from mixed fraction to improper fraction

for train A, after 2 hour, the portion of the distance is

for train A in two hours, the distance between it and the train station is 5/3 of the original distance
for train B, after 2 hours

after 2 hours, the distance B and the train station is 5/7 of the original distance