Suppose that c|ab and (b, c) = 1. Then c|a
Proof (ab, ac) =|a|(b, c) = |a|. But by hypothesis, one has c|ab, which implies that c|(ab, ac). We thus conclude that c|a. And the proof is complete.
I am sure it is very simple but I cant seem to understand the stage c|ab implies that c|(ab,ac). I would appreciate if someone could show me this.
Greatest common divisior of $x$ and $y$ is a number with a property that $d \mid x$ and $d \mid y$ implies $d \mid \gcd(x,y)$.
In your case we have $c \mid ab$ from assumption and $c \mid ac$ trivially, because $\frac{ac}{c}=a$. Hence, $c \mid \gcd(ab,ac)$.
I hope this helps $\ddot\smile$