distance = rate* time. Let t = the amount of time that the passenger train travels. The distance that the passenger train travels is:
distancep = (52 km.h)*(t hours)
The distance that the freight train has traveled is:
distancef = (32 km/h)*(t + 2 hours)
The passenger train catches the freight train when distancep = distancef:
(52 km.h)*(t hours) = (32 km/h)*(t + 2 hours)
52t = 32t + 64
20t = 64
t = 64/20
t = 3.2 hours