A piston-cylinder device contains 6 kg of H2 and 21 kg of N2 at 160 K and 5 MPa. Heat is now transferred to the device, and the mixture expands at constant pressure until the temperature rises to 200 K. Determine the heat transfer during this process by treating the mixture (a) as an ideal gas and (b) as a non-ideal gas and using Amagat's law.