Step 1: Understanding the Concept
For a moving source and a stationary observer, \(f'=f\dfrac{v}{v\mp v_s}\), with minus when the source approaches.
Step 2: Approaching
\(f_1=f\dfrac{340}{340-20}=f\dfrac{340}{320}\).
Step 3: Receding
\(f_2=f\dfrac{340}{340+20}=f\dfrac{340}{360}\).
Step 4: Result
\(\dfrac{f_2}{f_1}=\dfrac{320}{360}=\dfrac{8}{9}\), which is less than 1 because the pitch drops as the train goes away.
Final Answer:
The ratio f2 to f1 is 8/9.
\[ \boxed{\text{(D) }\dfrac{8}{9}} \]