I was asked to decompose the permutation $$\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5\\ 2 & 3 & 4 & 5 & 1 \\ \end{pmatrix} = (12345) \in S_5$$ into a product of two permutations, each with order 2.
I don't think that it is possible since the $\sigma$ is of order 5. But how can I show this mathematically?
It is difficult to predict the order of the permutation $\sigma\rho$ just from the order of the permutations $\sigma$ and $\rho$. In this case, we may use $\sigma = (1 5)(2 4)$ and $\rho = (5 2)(4 3)$. Both clearly have order $2$ (being the product of two disjoint $2$-cycles), but we have $$ \sigma\rho = (1 5)(2 4)(5 2)(4 3) = (12345) $$ when read left-to-right. If you prefer reading these products right-to-left, then use $\rho\sigma$ instead.
(This was found by trial and error using WolframAlpha because I'm too lazy to find pen and paper, and I have internet available.)