Show that all for $n>2$, $S_n$ contains two elements $x,y$, both of order $2$, such that their product is of order $n$.
I can find such elements for $n$ small, but I don't know how to make up an algorithm to produce these $x,y$ for large $n$. Any hints are appreciated.

Consider the dihedral group as a subgroup of the symmetric group with $s$ the reflection and $r$ the rotation generators. Then the elements $sr$ and $sr^2$ each have order $2$ and their product is $r$ which has order $n$. Note that we've tacitly used that $n > 2$.