Given,
The initial velocity of the car, u=10 m/s
The final velocity of the car, v=30 m/s
The acceleration of the car, a= 4.0 m/s²
From one of the equations of the motion, we have

Where t is the time duration.
On rearranging the above equation,

On substituting the known values,

Therefore the time that the car takes to accelerate is 5 s