Problem 1.6.24 in D&F:
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 $n = |xy|$.
My proof: If $t = xy$, then $tx = xyx = xt^{-1}$. Thus, $t$ and $x$ satisfy the same relations as $D_{2n}$ where $n = |t|$. The elements $t$ and $x$ clearly generate $G$ because $G = \left< x, y \right>$ and $y = xt$. Summarizing, we have shown $$ G = \left< t, x \mid t^n = x^2 = e, tx = xt^{-1} \right> $$
My question: Could you please check my proof to make sure it is sound (maybe suggest other simpler proofs)?
Thanks!