The net work done by the tension in the figure when the bigger block of mass M touches the ground is:
According to figure
Two masses to tension in opposite and equal direction
Therefore,
The net work done by the tension is zero.
A cord is used to lower vertically a block of mass M a distance d at a constant downward acceleration of g/4 . Then the work done by the tension in the cord on the block is