A gas is confined in a closed container with a movable piston. The container is kept in a hot water bath. Blocks of different known masses are placed on top of the piston one at a time, and the gas is allowed to come to equilibrium. The pressure and volume of the gas are recorded each time.
When a $200\ \mathrm g$ block is placed on the piston, the volume of the gas goes from $5×10^{-5}\ \mathrm{ m^3}$ to $4.7\times 10^{−5}\ \mathrm{m^3}$, while the pressure goes from $5.4\times 10^4\ \mathrm{Pa}$ to $5.7\times10^4\ \mathrm{Pa}$. If the surface area of the piston is $1\times 10^{−3}\ \mathrm{ m^2}$, the energy transferred to the gas due to the compression is most nearly:
Answer: $0.006\ \mathrm J$.
Is this the total work or is this specifically the work done by the piston?