A piston-cylinder assembly contains a two-phase liquid-vapor mixture of ammonia initially at 500 kPa with a quality of 98%. Expansion occurs to a state where the pressure is 150 kPa. During the process the pressure and specific volume are related by pv=constant. For the ammonia, determine the work and heat transfer per unit mass, each in kJ/kg.