Step-by-step explanation:
1.) Work = Force*Distance
2.) The direction of motion lies in the same direction as the tension in the cable. So the work done by tension would be positive.
3.) The direction of the weight (due to gravity) would act opposite to the direction of motion of the elevator, so work done by gravity becomes negative.