A pine cone is 40 feet above the ground when it falls from a tree. The height h in feet of the pine cone above the ground can be modelled by h=-16t^2+40, where t is the time in seconds since the pine cone started to fall. Solve the equation for t. Write your answer in simplest form.