Two identical blocks of iron, one at 100C and the other at 0C, are brought into thermal contact. what is the maximum work that can be extracted from the hot block in the absence of other heat sinks?
Remember, we can't just extract heat from the hot block and turn it into work; the entropy of the block would decrease without any compensating increase elsewhere. We need to add at least enough heat to the cold block so that its entropy increases by as much as that of the hot block decreases. (Work can always be used to do things which don't increase the entropy of the universe, such as lifting a weight.) Once the two blocks are at the same temperature, no further work can be extracted.
At that point the entropy change of the two blocks together, from the
previous example, is