Step 1: Understand internal energy change in isothermal process.
For an ideal gas in an isothermal process, temperature remains constant.
Therefore, change in internal energy is
\[
\Delta U=0
\]
So, for both isothermal expansions,
\[
\Delta U_1=0
\]
and
\[
\Delta U_3=0
\]
Step 2: Relate total internal energy change to adiabatic process.
The total change in internal energy is given as
\[
\Delta U_{\text{total}}=-30\;J
\]
Since only the adiabatic process contributes to the change in internal energy,
\[
\Delta U_{\text{adiabatic}}=-30\;J
\]
Step 3: Apply first law for adiabatic expansion.
For an adiabatic process,
\[
Q=0
\]
Using first law of thermodynamics,
\[
\Delta U=Q-W
\]
So,
\[
\Delta U=0-W
\]
\[
\Delta U=-W
\]
Given,
\[
\Delta U=-30\;J
\]
Therefore,
\[
-30=-W
\]
\[
W=30\;J
\]
Step 4: Final conclusion.
Hence, the work done by the gas during adiabatic expansion is
\[
\boxed{30\;J}
\]