Is the question properly formatted? some mistake there ?
I suppose that the person sitting on the train is blowing the whistle.
f₀ = 256 HZ
The change in frequency of sound heard is called the Doppler's shift. The formulas are:
1) when the source of the sound is approaching the observer :
2) when observer and source are separating from each other: