In order to calculate the observed frequency, we can use the formula for Doppler's effect:
Where f' is the observed frequency, f is the actual frequency, v is the speed of sound, vo is the observer speed and vs is the source speed.
Since the trains are approaching each other, the signal in the numerator is positive and the signal in the denominator is negative.
So we have:
Therefore the observed frequency is 14445.86 Hz.