To find the time that the rock is in the air, we need to find the times when f(t)=0:

We factor this equation as follows:

And now we apply zero product property, if ab=0, then a=0 or b=0.
In this case:

Since t=0 is the stating time, we only take the second equation, and solve for the time:

Answer: 20 seconds