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