A sample of gas is compressed by an average pressure of 0.50 bar so as to decrease its volume from 450 cm3 to 250 cm3. During the process 6.00 J of heat flows out to surroundings. Calculate the change in internal energy of the system.

External pressure (P) = 0.5 bar

Now, 1 L-bar = 101.3 J
