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