Let $G$ be a group and $H_1$, $H_2$ finite subgroups of $G$. Prove that $|H_1H_2| = \dfrac{|H_1||H_2|}{ |H_1 \cap H_2| }.$
I tried googling the problem to give me a hint on how to proceed and I saw a proof http://zimmer.csufresno.edu/~sdelcroix/sol251home6.pdf where they use equivalence relations. But I don't see how to do the proof with that. Can someone give me a hint or explain the reasoning behind the proof in the link?