Let $G_1, G_2$ be subgroups of a group $G$ and $G_1G_2 = \{g_1g_2: g_1 \in G_1, g_2 \in G_2\}$. Prove that $|G_1| \cdot |G_2| = |G_1G_2| \cdot |G_1 \cap G_2|$.
I've thought about cosets and considered sets $g_1G_2$ for all $g_1 \in G_1$. Sum of all these sets is equal to $G_1G_2$ and each element is counted the same number of times, $|G_1 \cap G_2|$ presumably, but I can't seem to prove this fact nor see a connection.