To solve this problem we will apply the linear motion kinematic equations. To determine the position in which the braking starts we will start from the definition of distance as a function of speed and time, that is
[tex]x = x_0 - vt[/tex]
Here,
[tex]x_0[/tex] = Initial position
v = Velocity
t = time
Replacing we have that
[tex]x = 1000-12*30[/tex]
[tex]x = 640m[/tex]
Now the acceleration is given by the function,
[tex]v_f^2=v_0^2 +ax[/tex]
Here,
[tex]v_f[/tex]= Final velocity
[tex]v_0[/tex]= Initial velocity
a = Acceleration
x = Displacement
Replacing we have that
[tex]0 = 12^2+2a(640)[/tex]
[tex]a = -0.1125m/s^2[/tex]
Therefore the acceleration necessary to bring the train to rest is [tex]-0.1125m/s^2[/tex]