Let us first calculate the tension. From figure
`T-mg=5a`, `T=5(10+2)=60N`
As T and displacement are in same direction (upwards), work done by the tension T is W.
`W=Ts=60(2.5)=150J`
Work done by gravity
`=-mgs=-5(10)(2.5)=-125J`
Net work done on the block= Work done by T+Work done by `mg`
`=150+(-125)=25J`
![image](https://learnqa.s3.ap-south-1.amazonaws.com/images/161038181617185828991610381816.png)