Question 798311
Assuming they are on parallel tracks and not on the same track, 
60x=40(x+2)
60x=40x+80
20x=80
x=4 hours for the passenger train to overtake the freight train.
check
60*4=40*(4+2)
240=240
ok