The P - V diagram of a system undergoing a thermodynamic process is shown in figure. Work done by the system in going from A→B→C is 30 J and 40 J heat is given to the system. The change in internal energy of the gas if the gas is directly taken from A to C is