Suppose $n = pq$ where $p$ and $q$ are distinct odd primes. Let $r$ be an integer such that $r \equiv p^{-1} \pmod q$, and put $s = 1 − 2rp$. Let a be an integer such that $(a, n) = 1$.Show that the solutions modulo n to the congruence $$x^2 ≡ a^2 \pmod n$$ are precisely $x \equiv ±a \pmod n$ and $x \equiv ±as \pmod n$
My attempt:
From $r \equiv p^{-1} \pmod q$, we get that $rp \equiv 1 \pmod q$
so $rp = 1 + qk$ for some $k$
$s = 1 - 2(1+qk) = -1 -2qk$
$s \equiv -1 \pmod q$
I'm kinda stuck now. Any help would be appreciated.