Here is the product of cycles. My textbook goes right to left multiplication. $$(1,4,5)(7,8)(2,5,7)$$
An observation here is that I don't think these cycles are disjoint and therefore they are not commutative. So far I have only done calculations with disjoint cycles so I wasn't sure how to handle this.
I calculated the permutation to be after writing the cycles out in table notation. $$\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8\\ 4 & 1 & 3 & 5 & 8 & 6 & 2 & 7 \end{pmatrix} $$
However, if I inverse the process and split $\sigma$ into cycles, I get $$(1,4,5,8,7,2)$$
Is it because I am not multiplying product of disjoint cycles that I am not able to inverse the equation? Am I just doing this completely wrong?
Your answer is correct!
What seems to be bothering you is that here is more than one way to write a permutation as a product of cycles, but this is just true. The fact that your permutation can be written as one cycle $(145872)$ in no way implies that it can't be written as the product of 3. (It's true that the "disjoint cycle" decomposition is unique up to moving the factors around, but most cycle decompositions are not unique.)