Explanation:
ball is hit from the ground level i.e h0=0
initial velocity=80
when the ball hits the ground it's height from the ground=0
substitute the data in the above function
0=-16t^2+80×t+0
t=0 is a solution but it is at the beginning of the projection
16t=80
t=5