The roots of polynomial $ p(k) $ are:
$$ \begin{aligned}k_1 &= 9.899\\[1 em]k_2 &= 0.101 \end{aligned} $$The solutions of $ k^2-10k+1 = 0 $ are: $ k = 5-2 \sqrt{ 6 } ~ \text{and} ~ k = 5+2 \sqrt{ 6 }$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.