Well, there's an easy theorem that would allow you to know if this has any solutions without having to do much work. You probably aren't allowed to use it, but if you are, here it is:
Let a,b,m be integers such that m>0 and (a,m) = d. If d \nmid b then ax \equiv b \pmod{m} has no solutions. If d | b then ax \equiv b \pmod{m} has exactly d soultions modulo m.
(This was taken from Ken Rosen's book.)
Now, if you can't use that theorem, here is something that should work.
What is it exactly that you want to know? That is, what does it mean for two numbers to be
congruent modulo some number? For example, if a \equiv b \pmod{m} what does that tell you about the relationship between a-b and m? Now, what if you had ax \equiv b \pmod{m}? What would this tell you about the relationship between ax - b and m? Now, do you see anything familiar? In particular, can you somehow make this congruence look like a linear Diophantine equation?