Can someone help me finish the proof? I am basing off this answer.
Let $G$ be an abelian group of order $pq$ with $\gcd(p,q)=1$. If there exist elements $a$ and $b$ such that $|a|=p$ and $|b|=q$, show that $G$ is cyclic.
After showing that $g^{pq}=e$, what do I do for the cases where $g=e$, $g^{p}=e$, and $g^{q}=e$? Any hints?