Hint:
The gen ral way to do such problems is: square --- islate the square-root --- square --- isolate the square-root ---
until you have a polynomial equation.
With your problem:
Square both sides:
Expand the brackets and isolate the square-root:
Now square again, isolate, ....
and finally solve the equation. For confirmation only: You should come out with p = 2