$${Q = mg(h_1-h_2)}$$