(2) is the correct answer.

   Because:
     1/p=1/f-1/q => (q-f)/fq => p=fq/(q-f)