The energy provided to the closed system is Q = 24059 J
The change in internal energy is
[tex]\Delta U=7851\text{ J}[/tex]Let the work done be denoted by W
According to the first law of thermodynamics,
[tex]W=Q-\Delta U[/tex]Substituting the given values, the work done will be
[tex]W=16208\text{ J}[/tex]The work done will be 16208 J.