(d) If front of locomotive, $\lambda^{'} = \frac{\lambda(v - v_{s})}{v} = \frac{v - v_{s}}{n}$
$\therefore\lambda^{'} = \frac{345 - 30}{500} = \frac{315}{500} = 0.63m$
Behind locomotive, $\lambda^{''} = \frac{\lambda}{v}\left( v + v_{s} \right) = \frac{v + v_{s}}{n}$
$\therefore\lambda^{''} = \frac{345 + 30}{500} = \frac{375}{500} = 0.75m$