Let $G$ be an abelian group and let $a,b \in G$ with $a$ having finite order $n$ and $b$ having finite order $m$. Assume that $m,n$ are distinct prime numbers. Prove that if $ab \neq e$, then the order of $ab$ is $mn$.
I got $a^mb^n$ becoming $ab$ to the power of m+n since they both belong to the group G.