The work done on the gas during an isothermal expansion is given by:
\[
W = -nRT \ln \left( \frac{V_f}{V_i} \right)
\]
where \( n \) is the number of moles, \( R \) is the gas constant, \( T \) is the temperature (constant), \( V_f \) is the final volume, and \( V_i \) is the initial volume. Assuming the temperature remains constant, we calculate:
\[
W = -1 \times 8.314 \times 298 \times \ln \left( \frac{3.5}{2} \right).
\]
Solving for \( W \), we get:
\[
W \approx -151 \, \text{J}.
\]
Thus, the work done on the gas is \( 151 \, \text{J} \).