Background: I have a follow up question to my question here: Groups of order $pq$ are cyclic
Ultimately I am wanting to prove that a group of order $pq$ where $p\nmid q-1$ is cyclic. I have reduced the case to needing to show that the group is Abelian. The key is that I don't know the Sylow Theorems.
So now a related question that I would like to see if is true is:
Questions: Let $G$ be a finite group. Let $H$ and $K$ be two subgroups such that $H\cap K = \{e\}$ and $HK = G$ (or $\lvert H\rvert\cdot \lvert K \rvert = \lvert G\rvert$). I am wondering if it is true that $G \simeq H\oplus K$ (external direct product).
I am thinking this is true when I think about examples like $A_n \leq S_n$ and $\{(12)\}\leq S_n$.