Scott D. answered 09/23/19
Physics Teacher with Many Years Experience, Including AP-Physics
The vertical component of the balls flight is completely dependent on g and the amount of time it takes to get to the highest point is the same as the time it takes to return to earth (so calculate the time to the top and double it to get time in the air). A simplified equation for this vertical motion is height = 1/2gt2, so t = square root of 40 x 2 / 10 = square root of 8 = 2.8 sec. Double that to get 5.6 sec.