Here are various results about the tensor product, one of my favorite mathematical constructions.
Lemma:
Let A be a ring with elements f,g. Then A/(f)⊗AA/(g)≅A/(f,g), where we give
the quotients the natural A-algebra structure.
Proof. We can always write an element a⊗b of A/(f)⊗AA/(g) as b′a⊗1
for some lift b′∈A of b, because the maps which we use to make A/(f) and A/(g) into
A-algebras are surjective. Explicitly, we can lift b to an element b′ of A with a⊗b=a⊗(b′⋅1)=(b′⋅a)⊗1 (where ⋅ is the action of A on A/(g) or
A/(f), as appropriate). From this, we see that the map A→A/(f)⊗AA/(g) by the rule
c↦c⊗1 is surjective. Suppose c=af+bg. Then c↦(af+bg)⊗A1=af⊗A1+1⊗Abg=0. Similarly, if c⊗1=0, then we must
have c=t⋅1⊗A1+1⊗v⋅1=0+0 for t,v∈A; the only way for this to
happen is if t∈(f) and v∈(g). Thus the ideal of this map is (f,g), and we are done.