Put your height h as 40. Well, for any time t, the height is given by 30t - 4.9t^2 = h.
So, since you height has to be above 40, the inequality becomes 30t - 4.9t^2 > 40, higher than 40 m
Now that you have

, can you solve for t? If, not, post and I or someone else will guide you.