Answer:
p = 2
Explanation:
A rational function has a vertical asymptote where the denominator is zero.
__
Your function will have a denominator that is zero when ...
x -p = 0 ⇒ x = p
We are told there is a vertical asymptote at x = 2. That means ...
p = 2