From the ideal gas law,
PV = nRT ==> P = nRT/V
where P is the pressure exerted by the gas on the container. The work W done by this pressure as the volume of the gas changes from V₁ to V₂ is given by the integral,
[tex]W = \displaystyle \int_{V_1}^{V_2}P\,\mathrm dV \implies W = nRT \ln\left(\dfrac{V_2}{V_1}\right)[/tex]
and solving for V₂ gives
[tex]V_2 = V_1\exp\left(\dfrac{W}{nRT}\right)[/tex]
If you add 1.7 kJ of heat to the system, which does the aforementioned work, the gas will expand to a volume of
[tex]V_2 = (23\,\mathrm L)\exp\left(\dfrac{1.7\,\mathrm{kJ}}{(3.1\,\mathrm{mol})\left(8.314\frac{\rm J}{\mathrm{mol}\cdot\mathrm K}\right)(320\,\mathrm K)}\right) \approx \boxed{28 \,\mathrm L}[/tex]