A vehicle can accelerate or decelerate at a maximum value of 1 ms−2 and can attain a maximum speed of 20 ms−1. If it starts from rest, what is the shortest time in which it can travel 1000 m, in a straight path, if it has to come to rest at the end of 1000 m?