The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= 7.2131\\[1 em]x_2 &= 2.7869 \end{aligned} $$The solutions of $ -49x^2+490x-985 = 0 $ are: $ x = 5-\dfrac{ 4 \sqrt{ 15}}{ 7 } ~ \text{and} ~ x = 5+\dfrac{ 4 \sqrt{ 15}}{ 7 }$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.