Answer
$$p=2\quad \mathrm{or}\quad \:p=10$$
Work Step by Step
Since the value inside the absolute value can be positive or negative and get the same number, we must consider both options. Doing this, we find:
$$6-p=-4\quad \mathrm{or}\quad \:6-p=4 \\ p=2\quad \mathrm{or}\quad \:p=10$$