I know that permutations in the symmetric group, permutations are the finite products of transpositions. This is given:
$$
(abc) = (ac)(ab) \\
(abcd) = (ad)(ac)(ab) \\
\vdots \\
(a_1a_2 \cdots a_k) = (a_1a_k)(a_1a_{k-1})\cdots(a_1a_2)
$$
However, I'm lost on how $(abc) = (ac)(ab)$ occurs. I know $(abc)$ takes $a$ to $b$, $b$ to $c$, and $c$ to $a$, but how does the two 2-cycles do the same thing? Is it not $(ac)$ takes $a$ to $c$, then $(ab)$ takes $a$ to $b$, so that gives $cab$? Same with the second line, $(abcd) = (ad)(ac)(ab)$.
Thank you in advance!