A rock is thrown upward from the height of 5 ft with an initial velocity of 50 ft per second. The height h(in feet) of the rock at time t seconds is h(t)=-16t^2+50t+5. When will the rock reach a height of 8 ft?