Here is a solution to the question:
I get it up to 'This means that either x-y = 0 ...' Beyond that, I am very confused. I was wondering if someone more experienced could clarify the remaining solution/explain it in simpler terms, if that is possible, please? For example:
I don't get what it means when it says:
- We get the same remainder if x and y have the same value mod p
- The only way these can give the same remainder is when they add to a multiple of p...
- This pairs the remainder x with p-x
And so on... Apologies if my question is too vague - I'm just quite stuck on this and would really appreciate any help. Thank you!

Consider a numerical example. $p=5$.
We have
The primitive remainders modulo $p$ are $\{ 0,1,2,3,\ldots,p-2,p-1 \}$ which are also $\{ 0,1,2,3,\ldots,-2,-1 \}$ modulo $p$. These are $p$ in total.
Squaring these we obtain distinct remainders $\{ 0,1^2,2^2,3^2,\ldots,(\frac{p-1}{2})^2 \} $ modulo $p$.
Thus we obtain $\frac{p-1}{2}$ pairs $\{(1,p-1), (2,p-2), \ldots\}$ (each pair summing to $p$) and a single distinct remainder, $0$.