What steps do I take in approaching this question? First $39=3\cdot13$, both of which are prime. $3$ divides $13-1$. I'm not too sure where to go from here. I know the Sylow Theorems and the Theorem of Finite Abelian Groups are relevant.
I realize there's another similar question here, but it asks only about the presentation of the nonabelian group.
How do I know that there are only 1 abelian and 1 nonabelian group?