The principle of maximum work states that for any process between two states, the work done by the system is maximised for a reversible process (and heat transfer is minimised), and that the work done by any reversible process between these two states is equal.
I don't see how that can be compatible with going between 2 states with equal entropy by different paths. For example:
-An adiabatic expansion between 2 states with the same entropy.
-An isovolumetric pressurisation followed by an isobaric expansion with the same initial and final states as the adiabatic expansion.
The area below of the second path in a P-V diagram is clearly higher, so we have a reversible process between two states doing less work than another process between those states. How can this apparent contradiction be resolved?