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