Answer
$$p=\sqrt{7}+1,\:p=-\sqrt{7}+1$$
Work Step by Step
Completing the square to solve the equation, we find:
$$ p^2-2p-6+\left(-1\right)^2-\left(-1\right)^2 \\ \left(p-1\right)^2-6-\left(-1\right)^2 \\ \left(p-1\right)^2-7 \\ \left(p-1\right)^2=7 \\ p=\sqrt{7}+1,\:p=-\sqrt{7}+1$$