In Dudley's Elementary Number Theory, Wilson's Theorem is preceded by two lemmas.
Lemma 1: $x^2\equiv 1 \pmod{p}$ has exactly two solutions: $1$ and $p-1$.
Lemma 2: Let $p$ be an odd prime and let $a'$ be the solution of $ax\equiv 1 \pmod{p}, a= 1,2,...,p-1.$ $a'\equiv b' \pmod{p}$ if and only if $a\equiv b \pmod{p}$. Furthermore, $a\equiv a' \pmod{p}$ if and only if $a\equiv 1$ or $p-1$.
The proof for Wilson's Theorem starts out by saying "From Lemma 2, we know that we can separate the numbers $2,3,...,p-2$ into $(p-3)/2$ pairs such that each pair consists of an integer $a$ and its associated $a'$".
How is it that Lemma 2 implies this?