I think your problem is that you are just integrating between pi and 3pi/2. You have failed to realise that the two graphs intersect at 5pi/4. Once the graphs intersect, then their position changes. That is. Between pi and 5pi/4, y= 2sinx is above y=2cosx, but between 5pi/4 and 3pi/2, y=2cosx is above y=2sinx. If this doesn't make sense, draw the graph.
I think the solution wants you to do two separate integrals.
Integrate 2(sinx- cosx) between pi and 5pi/4, and then integrate 2(cosx -sinx) between 5pi/4 and 3pi/2, then add these together to get the total area