I'm stuck with the last part of this question: solve $x^2 \equiv 140 \pmod{221}$.
We know that $140 = 7 \times2^2\times5$ and $221 = 13 \times 17$.
We split the original congruence in two, so we have:
$x^2 \equiv 140 \pmod{13}$
$x^2 \equiv 140 \pmod{17}$
Applying the properties of moduli we have:
$x^2 \equiv 10\pmod{13} \rightarrow x=\pm6$
$x^2 \equiv 4\pmod{17} \rightarrow x=\pm2$
After this point, it's not clear for me how I can arrive to the complete solution. Any advice?