You can
put this solution on YOUR website!This is a typical travel problem. It asks us for their speeds, so, we need to find them! Denote speed of the express train as E, and speed of the freight train as F.
F=E-30
3*(F+E) = 390
OR
E-F=30
3E+3F = 390
it is a simple linear system, for which I have a solver that shows work.