Let $\mathrm S ={(a,b) : a,b \in \mathbb Z, 0\le a,b \le 18}$. Find the number of elements in $\mathrm S$ such that $3x+4y+5$ is divisible by $19$.
I tried using congruences to simplify the problem.
We need $$3x+4y \equiv -5 \pmod{19} \equiv 14 \pmod{19}$$
I wrote $3x+4y \equiv 3(2)+4(2) \pmod{19}$. But I am not able to conclude anything from this. I know that if we find $(x,y)$ such that $x \equiv 2 \pmod {19}, y \equiv 2 \pmod{19}$ will satisfy the criteria, but will only these? I am stuck here. Please help me with proceeding in this solution or any other solution will also work.
Thanks!