f(x) = x+1,
so f(p)=p+1
Now let's work on solving for p:
2(p+1)=20
p+1 = 10
p=9
We're not done yet, of course. The question asked us for f(3p), which we can now rewrite as f(27). Just plug 27 into the function like we did with p before:
f(27) = 27 + 1
f(27) = 28