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