Copyright © Houghton Mifflin Company. All rights reserved.
CRS Question, 6–4
ANSWER
Choice 4 is not consistent with the concept that heat and work both are responsible for the Law of Conservation of energy.  If B would reverse, it would lose some heat to its surroundings so it would not have as much energy to cause A to go back to its original spot.
Section 6.1: The Nature of Energy