In a thermodynamic process, pressure of a fixed mass of a gas is changed in such a manner that the gas molecules gives out 30 joules of heat and 10 joule of work is done on the gas. If the initial internal energy of the gas was 40 joule, then the final internal energy will be
Given that
So,