A ball is thrown into the air with an initial upward velocity of 46ft/s. Its height (h) in feet after t seconds is given by the function h=-16t^2+46t+6. After how many seconds will the ball hit the ground?

A.3

B.4

C.5

D.6