Proof (second isomorphism theorem for groups)

$HK \leq G$

$e\cdot e \in HK$ so $HK$ is non-empty.

Moreover let $x,y\in HK$, and write $x=hk$ and $y=h'k'$ where $h,h'\in H$ and $k,k'\in K$. Note that $$ \begin{align*} yx\inv = h'k' k\inv h\inv = \underbrace{(h' h\inv)}_{\in H} \,\underbrace{(hk'k\inv h\inv)}_{\in K \text{ by normality}} \in HK. \end{align*} $$ Hence by the subgroup test, $HK\leq G$.

$HK/K \isom H/H\cap K$

Consider $$ \begin{align*} ϕ: H &\to G/K \\ h &\mapsto hK. \end{align*} $$ This is a homomorphism (as a restriction of the homomorphism $G\to G/K$).

The kernel is $$ \begin{align*} \ker(ϕ) = \sb{h\in H}{hK = K} = \sb{h\in H}{h\in K} = H\cap K. \end{align*} $$

The image is $$ \begin{align*} \im(ϕ) = \sb{hK}{h\in H} = \sb{hkK}{h\in H, k\in K} = HK/K. \end{align*} $$

Thus by the first isomorphism theorem, $HK/K\isom H/H\cap K$.