The root of polynomial $ p(k) $ is:
$$ \begin{aligned}k &= 3 \end{aligned} $$The solution of $ ~ k^2-6k+9 = 0 ~$ is $~ k = 3 ~$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.