To solve this problem we must resort to the Work Theorem, internal energy and Heat transfer. Summarized in the first law of thermodynamics.
[tex]dQ = dU + dW[/tex]
Where,
Q = Heat
U = Internal Energy
By reference system and nomenclature we know that the work done ON the system is taken negative and the heat extracted is also considered negative, therefore
[tex]W = -168J \righarrow[/tex] Work is done ON the system
[tex]Q = -305.6J \rightarrow[/tex] Heat is extracted FROM the system
Therefore the value of the Work done on the system is -158.0J