when the levels are the same, the height of the liquid is h=(h1+h2)/2, where h1 and h2 are the originals heights. Suppose h1 is greater than h2. The final situation can then be achieved by taking liquid with volume A(h1−h) and mass ρA(h1−h), in the first vessel, and lowering it a distance h−h2. The work done by the force of gravity is W=ρA(h1−h)g(h−h2). We substitute h=(h1+h2)/2 to obtain
W=14ρgA(h1−h2)2=14(1.30×103kg/m3)(9.80m/s2)(4.00×10−4m2)(1.56m−0.854m)2=0.635J