I am presented with the following problem:
Let $n \in \mathbb{N}$, let $G$ be a group of order $2n$, and let $H$ be a subgroup of order $n$. Prove that $gH = Hg$ for all $g \in G$.
My initial idea was to prove that $G$ is abelian, since if $G$ is abelian, then $H$ is abelian too ($H$ is a subgroup of $G$), which means that $gH = Hg$. However, I am having difficulty proving that $G$ is abelian just from the fact that its order is $2n$. If anybody could give me any hints in the right direction, that would be greatly appreciated.