Do you find this with synthetic and long divison?

Answer:
p=-2
Step-by-step explanation:
we can solve by both methods
if it is divisible by x-1,then remainder is zero.
i solve by synthetic division.
x-1=0,x=1
1 | 1 -1 p 2
| 1 0 p
_________
1 0 p |2+p
Here 2+p is remainder.
p+2=0
p=-2