Solve $6x \equiv 4 \pmod{10}$. I've tried the following:
Note that $\gcd(6,10) = 2$. Since $2 \mid 4$, a solution exists. We can rewrite the problem as $6x \equiv 24 \pmod{10}$, by adding $10$ to the right side twice. So, $x \equiv 4 \pmod{10}$.
Is this a correct approach? I'm going through the book for examples but it's minimal. The class lectures didn't cover it either.