Hi all, I'm having a few problems doing practical problems. I can solve some of them but I'm having problems with deaccelleration in particular.. Can you help me solve these problems?

The distancestravelled by a train intseconds after it applies its brakes is given by . How far has the train travelled before it comes to rest ?

I'm totally stumped by this one but I can do some acceleration questions, such as:

A missile is fired vertically upwards and its heighthin metres after timetis given by . Calculate the maximum height reached by the missile.

I know thw anwer to this is 1000.. But I'm lost with deaccelleration..

Can someone please help, thanks in advance.