A train is travelling towards the station on a straight track. It is a certain distance from the station when the engineer applies the brakes. Initially, the train is moving at 50 m/s and slows down at 2.5 m/s^2. If the train stops at the station, how far before the station did the engineer apply the brake?