Prove that in a prinicpal ideal domain, two ideals (a) and (b) are comaximal if and only if a greatest common divisor of a and b (in which case (a) and (b) are said to be coprine or realtively prime)

Note: (1) Two ideals A and B of the ring R are said to be comaximal if A + B = R

(2) Let I and J be two ideals of R

The sum of I and J is defined as $\displaystyle I+J = \{ a+b | a \in I, b \in J \} $