Solving $x^2 \equiv 28 \pmod 6$
The answers are: $x \equiv 2 \pmod 6$ and $x \equiv 4 \pmod 6$.
When I plugged in to check the answers, it would be $2^2 \equiv 4 \pmod 6$ and $4^2 \equiv 16 \equiv 4 \pmod 6$. It is $4$ but not $28$, why is this, I don't understand? Anyone can help me understand this? Thanks a lot!