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,
Thus, the speed of freight train is 18 miles/hour.
And the speed of passenger train is 3v = 54 miles/hour.