How much work does gravity do on the compressor during this displacement?

1)A 25 kg air compressor is dragged up a rough incline from r1=(1.3i^+1.3j^)m to r2=(8.3i^+2.6j^)m, where the y-axis is vertical. How much work does gravity do on the compressor during this displacement?

2)A 25 kg box sliding to the left across a horizontal surface is brought to a halt in a distance of 55 cm by a horizontal rope pulling to the right with 16 N tension.How much work is done by tension?How much work is done by gravity?