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