A rocket is fired vertically from the ground. It moves upwards with a constant acceleration 10 ms−2 for 30 seconds, after which the fuel is consumed. After what time from the instant of firing, the rocket will attain the maximum height? (Take g = 10 ms−2)