When a high-speed passenger train traveling at 101 km/h rounds a bend, the engineer is shocked to see that a locomotive has improperly entered onto

When a high-speed passenger train traveling at 101 km/h rounds a bend, the engineer is shocked to see that a locomotive has improperly entered onto the track from a siding and is a distance D = 671 m ahead. The locomotive is moving at 25 km/h. The engineer of the high-speed train immediately applies the brakes. What must be the magnitude of the resulting constant deceleration if a collision is to be just avoided?