The roots of polynomial $ p(m) $ are:
$$ \begin{aligned}m_1 &= 2\\[1 em]m_2 &= -9 \end{aligned} $$The solutions of $ m^2+7m-18 = 0 $ are: $ m = -9 ~ \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.