It is given that:

It is said to find the time when the rocket hits the ground and s is the height of rocket.
When the rocket hits the ground, s=0.

Hence time is either 0 or 9 seconds. Hence after the rocket is in the air it will hit the ground after 9 seconds.