i) for min time the car should use max acceleration and now car will travel 40+40+3+17=100m
using newtons 2nd eqn
100=v(rel)t=1/2at2
100=0+t2/4
t=20s
ii) Total distance travelled by car = S = 100 + 20*20 = 500m
iii) The final speed of the car
v = u+at
v = 20+0.5*20 = 30 m/s