Solve for p p^4+40=14p^2