Solve for t p(t)=5000+1000t^2