$G$ is a group.
If $H, K \le G, |H|, |K| < \infty$, then $$|HK| = \frac{|H||K|}{|H \cap K|}$$
How to prove it?
UPD:
I tried to prove that this function is bijective:

So if i prove it, I can do next thing:

But how to prove it?
$G$ is a group.
If $H, K \le G, |H|, |K| < \infty$, then $$|HK| = \frac{|H||K|}{|H \cap K|}$$
How to prove it?
UPD:
I tried to prove that this function is bijective:

So if i prove it, I can do next thing:

But how to prove it?
Hint (1): define a map $\phi: H \times K \rightarrow HK$, by $\phi((h,k))=hk$. Try to show that an element $g \in HK$ has exactly $|H \cap K|$ preimages. (No need to introduce cosets here!)
Hint (2): if $x \in H \cap K$, then $\phi((hx,x^{-1}k))=\phi((h,k))$.