A train sounds its whistle as it approaches and leaves a railroad crossing. An observer at the crossing gauges a frequency of 219 Hz as the train approaches and a frequency of 184 Hz as the train leaves. The speed of sound is 340 m/s. Discover the speed of the train and the frequency of the whistle.