(b) Tension in the string $T = M(g - a) = M\left( g - \frac{g}{2} \right) = \frac{Mg}{2}$ $W = \ Force\ \times \ displacement$ $= - \frac{Mgh}{2}$
Physics Educator & NEET/JEE Specialist
Ph.D. in Physics with 19+ years of teaching experience.