Please explain question 7

Please explain question 7, of Number Theory Quiz |||. I’m not able to understand it?

What are p and q?