To compose permutations, you can track what happens to the individual elements. For example, to check $(12345)=(54)(52)(21)(25)(23)(13)$, apply each transposition, starting on the right:
$$ 12345\\\ 32145\\\ 23145\\\ 53142\\\ 53241\\\ 23541\\\ 23451 $$
The result is the same as that of applying $(12345)$.