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