A certain mass of gas is taken from an initial thermodynamics state A to another state B by process 1 and 2. In process 1 for the gas does 5 J of work and absorbs 4 J of heat energy.