In my professor's notes there's the following example:
$$21x \equiv 15 \pmod{39} \Leftrightarrow 21x - 39y = 15$$
It reads:
Because $\gcd(21,-39) = 3$ and $3\mid15$, this equation has a solution.
This confuses me because just earlier, and on articles I've read on the internet what it always says is that these equations are only possible if gcd(21,39) (in this case) equals 1, or that they are relatively prime. Now I am just confused. Which one is it?