To avoid the space becoming discrete, we must not allow $b = 0$. Also, $A_{a,b} = A_{a,-b}$. Hence it is sufficient to take $b \in \mathbb{Z}^+$. Finally, if $a > b$, then by taking $c = a \mod b$, we see that $A_{a,b} = A_{c,b}$. Thus the basic open sets are of the form $A_{a,b}$, $(b \in \mathbb{Z}^+, 0 \le a < b)$. Or in other words, the basic open sets are of the form $b\mathbb{Z} + a$.
Next given $A_{a,b}, A_{a',b'}$, we have to find $A_{c,d} \subset A_{a,b} \cap A_{a',b'}$. Let $z,w \in A_{c,d}$. Then $z,w \in A_{a,b} \Rightarrow b \mid (z-w)$ and similarly, $ b' \mid (z-w)$. Thus $lcm(b,b') \mid (z-w)$. So, we take $d = lcm(b,b')$.
Next we have to find $c$. As noted we shall find $c$ such that $0 \le c <d$. Let $x$ be the smallest nonnegative integer in $A_{c,d}$. Then $x \in A_{a,b} \Rightarrow b \mid (x - a)$. This gives $x \cong a \mod b$. Similarly, $x \cong a' \mod b'$. Using the Chinese remainder theorem, we get $c$. Note that in Chinese remainder theorem, either there is no solution or there are infinitely many solutions. Here our requirement of proving that the given sets form an open base, forces that we have to find the solution, only when the two sets intersect. Thus the solution is guaranteed.