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