The driver of train A travelling at a speed of 54 kmh-1 applies brakes and retards the train uniformly

The driver of train A travelling at a speed of 54 kmh-1 applies brakes and retards the train uniformly. The train stops in 5 seconds. Another train B is travelling on the parallel with a speed of 36 kmh-1. Its driver applies the brakes and the train retards uniformly; train B stops in 10 seconds. Plot speed-time graphs for both the trains on the same axis. Which of the trains travelled farther after the brakes were applied?

Answer:
image