Let $D$ be a UFD and let $a,b,c \in D$ be pairwise coprime, i.e. $\gcd(a,b)=\gcd(b,c)=\gcd(a,c)=1$. I would like to prove that then $(a,b) \cap (c) = (a,b) \cdot (c) = (ac,bc)$. Note that $(a,b)$ and $(c)$ are not necessarily comaximal ideals, so this does not follow immediately.
Here is my approach: $(ac,bc) = (a,b) \cdot (c) \subseteq (a,b) \cap (c)$ as this holds for all ideals. Now let $x \in (a,b) \cap (c)$. Since $x \in (a,b)$ there exist $d_1, d_2 \in D$ with $x=d_1a + d_2b$. As $x \in (c)$ we know that $c|x$, but how can I use that the elements being coprime of means that $c$ divides $d_1$ and $d_2$?