The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= 0.5056\\[1 em]x_2 &= -5.9341 \end{aligned} $$Step 1:
Combine like terms:
$$ \color{blue}{2x^2} \color{blue}{-9x^2} -38x+21 = \color{blue}{-7x^2} -38x+21 $$Step 2:
The solutions of $ -7x^2-38x+21 = 0 $ are: $ x = -\dfrac{ 19 }{ 7 }-\dfrac{ 2 \sqrt{ 127}}{ 7 } ~ \text{and} ~ x = -\dfrac{ 19 }{ 7 }+\dfrac{ 2 \sqrt{ 127}}{ 7 }$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.