For two topological spaces $A$ and $B$, in order to show that $H(A \sqcup B) \cong H(A) \oplus H(B) $ in this question and in general I believe one can use Mayer-Vietoris to obtain the result easily. However, I don't quite understand how it applies in this case - what if $A \sqcup B$ is not contained in the interior of $A$ and $B$?
Also in the link above the OP claims $A \cap B= \emptyset $ to conclude that homology group is trivial but $A \cap B$ need not be empty or am I missing something?
Would greatly appreciated if someone could shed a light on these.