The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= 8\\[1 em]x_2 &= -\dfrac{ 1 }{ 5 } \end{aligned} $$Step 1:
Combine like terms:
$$ 5x^2+ \color{blue}{x} + \color{red}{2} \color{blue}{-40x} \color{red}{-10} = 5x^2 \color{blue}{-39x} \color{red}{-8} $$Step 2:
The solutions of $ 5x^2-39x-8 = 0 $ are: $ x = -\dfrac{ 1 }{ 5 } ~ \text{and} ~ x = 8$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.