A subway train travels over a distance

**s**in

**t**seconds. It starts from rest (zero velocity) and ends at rest. In the first part of its journey it moves with constant acceleration

**f**and in second part with constant deceleration (negative acceleration)

**r**. Show that

**[fr/(f+r)]t^2/2**