The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= 1.7303\\[1 em]x_2 &= 14.2887\\[1 em]x_3 &= -1.0095+0.7738i\\[1 em]x_4 &= -1.0095-0.7738i \end{aligned} $$Polynomial $ x^4-14x^3-6x^2+24x+40 $ has no rational roots that can be found using Rational Root Test, so the roots were found using quartic formulas.