Let's assume that the speed is positive towards east.
So, the eastbound train has speed
, while the other train has speed
. In fact, its speed is greater than the other train's, but in the opposite direction.
So, the eastbound train follows the rule:

while the westbound train follows the rule

where
is the position of the train, in miles after
hours.
So, we know that

which means

And we can easily rearrange and solve for
:



But this was the speed of the eastbound train. The speed of the other train was greater than this by
units, and in the opposite direction, so it is
miles per hour in the opposite direction, or
mph