Given that the relative distance between 2 trains, d = 360 miles
Time, t is 5 hrs.
Let speed of freight train be v, then the speed of passenger train will be 3v.
For relative speed, the speed of trains will be added.
Hence,
[tex]\begin{gathered} 3v+v=\frac{360}{5} \\ v=\frac{360}{5\times4} \end{gathered}[/tex]Thus, the speed of freight train is 18 miles/hour.
And the speed of passenger train is 3v = 54 miles/hour.