I am learning about modular equations. In my math textbook it says "For the diophantine equation $ax + by = c$, $a, b, c \neq 0$. To find which integers $x$ and $y$ satisfy the equation, the equality can be reformulated to a congruence: Determine $x$ so that $ax \equiv c$ (mod $b$)."
I don't see why it is possible to rewrite $ax + by = c$ to $ax \equiv c$ (mod $b$) when solving the diophantine equation. Why is this possible?
If $ax \equiv c \pmod b$, it must mean that $ax-c$ is divisible by $b$, so that: $$ax - c = kb \implies ax-kb = c$$ And if $ax+by=c$, then obviously $ax \equiv c \pmod b$, so the equations are equivalent.