Answer:
[tex]\Delta U=-50J[/tex]
Explanation:
Hello,
In this case, we use the equation regarding the first law of thermodynamics which is:
[tex]Q-W=\Delta U[/tex]
In this case, the want to compute the change in thermal energy of the gas which is related with ΔU. In such a way, since the 10 J are being removed, they are set as negative in the aforesaid equation, moreover, the 40 J of work are positive since it is a work done on the system. Hence:
[tex]-10J-40J=\Delta U\\\Delta U=-50J[/tex]
Best regards.