I’m looking for some hints. Let J be an ideal of $R \times S$. I have already proved that $$J_1 = \{a \in R / (a,b) \in J \; for \; some \; b \in S\}$$ $$J_1 = \{b \in S / (a,b) \in J \; for \; some \; a \in R\}$$ are ideals of R and S respectively.
Also, I proved that if $J_1$ and $J_2$ are ideals of R and S respectively, then $J_1 \times J_2$ Is an ideal of $R \times S$. But I don’t know how to conclude the proof.