Arturo O. answered  04/07/20
Experienced Physics Teacher for Physics Tutoring
v = speed of freight train
v + 16 = speed of passenger train
At the time t=5 when they pass, they are at the same point, so
vt = 400 - (v + 16)t
t = 5
5v = 400 - 5(v + 16)
10v = 320
v = 32 mph
v + 16 = 48 mph
Test the answer.