When a gas expands against a fixed outside pressure, . In the chemistry (IUPAC) convention, energy leaving the system as work is negative.
Choosing +30 J because the question says 'work done by the gas', or wasting time on the temperature, which is not needed.
Magnitude ; sign is negative for expansion and positive for compression. 1 L bar = 100 J.