WILL MARK BRAINLIEST TIMED HELP!

The height of an arrow that is shot upward at an initial velocity of 40 meters per second can be modeled by h=40t-5t^2 where h is the height in meters and t is the time in seconds. Find the time it takes for the arrow to reach the ground.