Let $X=Y_1\cup Y_2$.
Denote $I:=\mathcal{I}(X)$, $I_1:=\mathcal{I}(Y_1)$, $I_2:=\mathcal{I}(Y_2)$. Then we have $I=I_1\cap I_2$.
In this question, the answer suggests that there is an exact sequence $$ 0\rightarrow R/I\rightarrow R/I_1\oplus R/I_2\rightarrow R/(I_1+I_2)\rightarrow 0 $$ Could anyone explain to me how to construct such sequence?
I can figure it out in the special case where $Y_1\cap Y_2=\varnothing$. Because if so we have $I_1+I_2=R$, and in the polynomial ring which is Dedekind, we have $$ (I_1+I_2)(I_1\cap I_2)=I_1I_2 $$ which implies $I_1I_2=I_1\cap I_2$. Now the above exact sequence degenerate into an isomorphism $$ R/(I_1I_2)\rightarrow R/I_1\oplus R/I_2 $$ which can be constructed easily by using Chinese Reminder Theorem.
However, I fail to see the sequence in general case. Please help.