From the edge of a 25 m building, a student threw s rock up 35 m/s and it landed on the ground.

How long was the rock in the air?

hf=hi+vi*t-4.9t^2

0=25+35*t-4.9 t^2

solve the quadratic with the quadratic equation.