To solve this problem we will apply the concepts related to the Doppler effect. This is understood as the change in apparent frequency of a wave produced by the relative movement of the source with respect to its observer. Mathematically this is given as,

Here,
v = Speed of the waves in the middle
= Speed of the receiver in relation to the medium (Positive if the receiver is moving towards the transmitter or vice versa)
= Speed of the source with respect to the medium (Positive if the source moves away from the receiver or vice versa)
Our values are given as,




Replacing,

Solving for the velocity of the source,

Therefore the speed of the other train is 26.1m/s