Answer : The heat rejected by the system is 1000 J
Explanation :
As per first law of thermodynamic,

where,
= internal energy of the system
q = heat added or rejected by the system
w = work done of the system
First we have to determine the internal energy for 30 grams of gas.
As, 1 gram of gas has internal energy = 200 J
So, 30 grams of gas has internal energy = 200 × 30 = 6000 J
Now we have to determine the heat of the system.

= -6000 J
w = 5000 N.m = 5000 J
Now put all the given values in the above formula, we get:


The negative sign indicate that the heat rejected by the system.
Hence, the heat rejected by the system is 1000 J