The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= -2.3553\\[1 em]x_2 &= 1.1777+1.0773i\\[1 em]x_3 &= 1.1777-1.0773i \end{aligned} $$Step 1:
Combine like terms:
$$ x^3+ \color{blue}{2x} \color{blue}{-5x} +6 = x^3 \color{blue}{-3x} +6 $$Step 2:
Polynomial $ x^3-3x+6 $ has no rational roots that can be found using Rational Root Test, so the roots were found using qubic formulas.