A mixing chamber receives 5 kg/min ammonia as saturated liquid at −20°C from one line and ammonia at 40°C, 250 kPa from another line through a valve. The chamber also receives 325 kJ/min energy as heat transferred from a 40°C reservoir. This should produce saturated ammonia vapor at −20°C in the exit line. What is the mass flow rate in the second line and what is the total entropy generation in the process?