A heavily insulated cylinder fitted with a frictionless piston, as shown in Fig. P8.51, contains ammonia at $5^{\circ} \mathrm{C}$ and $92.9 \%$ quality, at which point the volume is 200 L. The external force on the piston is now increased slowly, compressing the ammonia until its temperature reaches $50^{\circ} \mathrm{C}$. How much work is done by the ammonia during this process?