A container closed by a freely moving piston contains a mixture of hydrogen and helium gases of total mass 12 gm. A heat of 150 kJ is transferred to the gas at constant pressure and in this process gas performs 50 kJ work. Find mass of hydrogen (in gm) in the mixture.
Mass of hydrogen = 4 gm