Two identical cylindrical vessels with their bases at the same level each contains a liquid of density d. The height of the liquid in one vessel is h1 and that in the other vessel is h2. The area of either base is A. The work done by gravity in equalising the levels, when the two vessels are connected is:
Work done = initial potential energy -final potential energy