Proof (Mayer-Vietoris)
On the level of chain groups, we have a short exact sequence of abelian groups $$ \begin{align*} 0 \to C_n(M\cap N) \xrightarrow{i_n \oplus j_n} C_n(M) \oplus C_n(N) \xrightarrow{k_n - l_n} C_n(K) \to 0 \end{align*} $$ because
-
$i$ and $j$ are injective and thus so is $i_n \oplus j_n$;
-
any simplex of $K$ lies in either $M$ and $N$, so $k_n - l_n$ is surjective;
-
$(x,y)\in \ker(k_n - l_n)$ $\iff$ $C_n(M) \ni k_n(x)=l_n(y)\in C_n(N)$ $\iff$ $x,y\in C_n(M\cap L)$ $\iff$ $(x,y)\in \im (i_n \oplus j_n)$.
Therefore applying the snake lemma to
yields an exact sequence $$ \begin{align*} H_n(L) \to H_n(M) \oplus H_n(N) \to H_n(K) \xrightarrow{δ_*} H_{n-1}(L) \to H_{n-1}(M)\oplus H_{n-1}(N) \to H_{n-1}(K). \end{align*} $$
The theorem follows by piecing together the exact sequences for different $n$.