hi! how do i do this?

Answer:
p = 2
Step-by-step 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