[(1,2,3,4) ○ (1,2)(3,5)]^-1
The solution has the following steps:
f=(1,2,3,4) g=(1,2)(3,5)
Compute f○g:

Where can I find information regarding what the steps are doing in this problem? I understand how to compute the composition of two functions but I can't follow what's done for sets.