Let $R$ be a ring with identity and $A_1,\dots,A_n$ ideals of $R$ with the property, that $A_i + A_j = R$ whenever $i \neq j$. Then $$R = A_i + \bigcap_{j \neq i} A_j \qquad i = 1,\dots,n$$
The easiest way is propably to show that $1$ belongs to the righthandside. Fix some $i$. Then we find $a_j \in A_i$ and $b_j \in A_j$ for $j \neq i$ such that $$1 = a_j + b_j$$ Hence $$1 = (a_1 + b_1)\dots(a_n + b_n)$$ Now I do not know how to conclude.