Given that $$\displaystyle G=\{e,x,x^2,x^3,y,xy,x^2 y,x^3y \}$$ with ${\rm ord}(x)=4$ and ${\rm ord}(y)=2$ such that $xy=yx^3$
Then find the number of elements in the center of the group $G$
The solution I tried:
Given group has order $8=2^3$ thus its the order of its center will be of form $2^n$ and also ${\rm ord}(Z(G))>1$
If the order of $Z(G)$ is $4$ then the quotient ${\rm ord} \dfrac{G}{Z(G)}=2$ which is not possible, and the order $8$ is also not possible because $x$ doesn't commute with every element. So the order of $Z(G)$ will be $2$, but my question is, how can I use the given condition to prove this, what is the use of that condition given in question?
Please help.