A cylinder fitted with a frictionless piston contains $5 \mathrm{kg}$ of superheated refrigerant $\mathrm{R}-134 \mathrm{a}$ vapor at $1000 \mathrm{kPa}$ and $140^{\circ} \mathrm{C} .$ The setup is cooled at constant pressure until the $\mathrm{R}-134 \mathrm{a}$ reaches a quality of $25 \%$. Calculate the work done in the process.