A mass M is lowered with the help of a string by a distance h at a constant acceleration g2. The work done by string will be
Tension in the string,
T=M(g−a)=M(g−g2)=Mg/2
W= Force×Displacement =−Mgh2
Negative sign is because tension is in the upward direction and displacement is in the downward direction.