a) [tex]2.4\cdot 10^4 J[/tex]
For a gas transformation occuring at a constant pressure, the work done by the gas is given by
[tex]W=p(V_f -V_i)[/tex]
where
p is the gas pressure
V_f is the final volume of the gas
V_i is the initial volume
For the gas in the problem,
[tex]p=3 atm = 3\cdot 1.013\cdot 10^5 Pa = 3.039\cdot 10^5 Pa[/tex] is the pressure
[tex]V_i = 0.02 m^2[/tex] is the initial volume
[tex]V_f = 0.10 m^3[/tex] is the final volume
Substituting,
[tex]W=(3.039\cdot 10^5 Pa)(0.10 m^3-0.02m^2)=24312 J = 2.4\cdot 10^4 J[/tex]
b) [tex]3.24\cdot 10^5 J[/tex]
The heat absorbed by the gas can be found by using the 1st law of thermodynamics:
[tex]\Delta U = Q-W[/tex]
where
[tex]\Delta U[/tex] is the change in internal energy of the gas
Q is the heat absorbed
W is the work done
Here we have
[tex]\Delta U = 3.0\cdot 10^5 J[/tex]
[tex]W=2.4\cdot 10^4 J[/tex]
So we can solve the equation to find Q:
[tex]Q=\Delta U + W = 3.0\cdot 10^5 J +2.4\cdot 10^4 J = 3.24\cdot 10^5 J[/tex]
And this process is an isobaric process (=at constant pressure).