This equation is of the form
a*p^2 + b*p + c = 0
A quadratic equation can be solved
using the discriminant.
The roots of the quadratic equation:
$$p_{1} = \frac{\sqrt{D} - b}{2 a}$$
$$p_{2} = \frac{- \sqrt{D} - b}{2 a}$$
where D = b^2 - 4*a*c - it is the discriminant.
Because
$$a = 6$$
$$b = -1$$
$$c = -2$$
, then
D = b^2 - 4 * a * c =
(-1)^2 - 4 * (6) * (-2) = 49
Because D > 0, then the equation has two roots.
p1 = (-b + sqrt(D)) / (2*a)
p2 = (-b - sqrt(D)) / (2*a)
or
$$p_{1} = \frac{2}{3}$$
$$p_{2} = - \frac{1}{2}$$