Answer :
In a), no work is done to move horizontally 'across" gravity. In b), he does (m) (g) (h) = (100)(9.8)(1) = 980 joules of work to lift the bag, and then no more work is done by the belt to move both of them horizontally.