Problem Let $G$ be a finite group and let $x$ and $y$ be distinct elements of order $2$ in $G$ that generate $G$. Prove that $G \cong D_{2n}$, where $\vert xy \vert = n$.
Solution We have $x^2 = 1$ and $y^2=1$. If we let $t=xy$, we then have $tx = xt^{-1}$. This is because, $tx = xyx$ and $xt^{-1} = x(xy)^{-1} = xyx$, since $x^{-1} = x$ and $y^{-1} = y$. And note that $y = xt$. Hence, instead of $x$ and $y$ generating the group, we can have $x$ and $t$ to generate the group.
I proved that setting $t=xy$, we have $tx=xt^{−1}$. And since $x$ and $y$ generate G, since $y=xt$, $t$ and $x$ also generates $G$. Is this (along with the fact that $G$ is finite) sufficient to conclude that $G \cong D_{2n}$?
Also, I have another related question, can there be an infinite Dihedral group, i.e., $$D_{\infty} = \langle x,y \vert x^2=1, yx=xy^{-1}, y \text{ has infinite order}\rangle$$ Or is this isomorphic to some other group?