As the compression of the gas takes place against a constant pressure, the work done is given by
W = -Pex (V2 – V1)
W = Work done by the gas against the external pressure = 3500 J
∴ W = \(\frac{3500}{100}\) = 35 dm3 bar
P = Constant external pressure = ?
V2 = Final volume = 15 dm3
V1 = Initial volume = 25 dm3
∴ 35 = -P × (15 – 25)
∴ 35 = 10 × P
∴ P = \(\frac{35}{10}\) = 3.5 bar
∴ External pressure = 3.5 bar