$${A=-(mgh_2 - mgh_1)}$$