Answer: The speed of the freight train = 40 miles per hour
And the speed of the passenger train =3(40)=120 miles per hour
Explanation:
Let the speed of the freight train be x miles per hour.
Then the speed of the passenger train is 3x miles per hour.
Time taken from 3PM to 6 PM= 3 hours
Since,

Now, The distance traveled by freight train=

The distance traveled by passenger train=

Also, At 6PM they are 240 miles apart.

Thus, the speed of the freight train = 40 miles per hour
And the speed of the passenger train =3(40)=120 miles per hour