Answer:
612 Hz.
Explanation:
The frequency of the sound will be proportionally higher when coming towards you. The increase is related to the speed of the train.
So the frequency will be:
580 + (580 / 343) * 18.8
= 612 Hz.
This is called the Doppler effect.