Question 1152422
Let {{{ s }}} = the speed pf the eastbound train
{{{ s + 5 }}} = the speed of the westbound train
----------------------------------------------------
You can add their speeds, and think of this as one train
traveling {{{ 510 }}} mi or {{{ 6 }}} hrs
{{{ 510 = ( s + s + 5 )*6 }}}
{{{ 510 = ( 2s + 5 )*6 }}}
{{{ 510 = 12s + 30 }}}
{{{ 12s = 480 }}}
{{{ s = 40 }}}
and
{{{ s + 5 = 45 }}}
--------------------
40 mi/hr = the speed pf the eastbound train
45 mi/hr = the speed of the westbound train
-------------------------------------------------
check:
(1) {{{ d[1] = 40*6 }}}
(2) {{{ d[2] = 45*6 }}}
{{{ d[1] + d[2] = 510 }}}
{{{ 240 + 270 = 510 }}}
OK
Get another opinion if needed