A cylinder fitted with a piston contains ammonia at $50^{\circ} \mathrm{C}$ and $20 \%$ quality with a volume of 1 L. The ammonia expands slowly, and during this process heat is transferred to maintain a constant temperature. The process continues until all the liquid is gone. Determine the work and heat transfer for this process.