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