This is a doppler effect problem, the equation you'll need to use is f'=f(Vsound+Vobserver/Vsound-Vsource)
When at rest, two trains have sirens that emit a frequency of 300Hz. The two trains travel toward one another and toward an observer stationed between them. One of the trains moves at 30...