Let $R$ be an integral domain. I want to show that $(a,b) \subseteq (d) \iff d|a$ and $d|b$.
The implication $\Leftarrow$ is clear: if $a = dc, b = dr$, then $r_1a + r_2b = r_1cd + r_2rd = (r_1c+r_2r)d \in (d)$.
But I'm not sure what do with $\Rightarrow$ . Well, if $(a,b) \subseteq (d)$, then $\forall r_1, r_2 \in R \ \ \exists r_3 \in R: \ r_1a + r_2b = r_3d$. In particular, $a + b = rd$ for some $r \in R$.
By definition, $(a,b)$ is the smallest ideal containing $a$ and $b$. Thus if $(a,b)\subseteq (d)$, then in particular $a\in(d)$ and $b\in (d)$.