I have a group $G$ of order $2p$, where $p>2$ and prime. The additional thing that I also know, that $\exists a\in Z(G)\mid O(a)=2$. I need to prove that G is abelian.
But first, before that, tell me please, isn't here (in my next direction of thinking any objection to the given information).
So, I look at two sub-groups of $G$ (the order isnt prime so they exist and their order devides the order of the group) of order $p$, $A,B\le G\mid O(a)=O(b)=p$
They are cyclic because of their order (is prime). And their elements are the total elements in $G$ (because they are sub-groups and there are totally $2p$ elements, and here I look at different sub-groups with $p$ elements each).
So left to prove that any $a\in A$ abelian with any $b\in B$. Now I think about the second data that given. The center of $G$ is in $G$, so there is $g\in G\mid g^2=e$. But must $g\in A$ or $g\in B$, but their order is $p$ and $2$ does not divide any of them. Isn't that an objection ? Otherwise, which of the step is wrong, what can't I conclude from what I wrote?