Answer :
![U_f=2500\ J](https://img.qammunity.org/2020/formulas/physics/middle-school/xqywwj8y78b9hehbsn3d74bpf5nmgj280g.png)
Explanation :
It is given that,
Heat that enters the system, Q = 1000 J
Work done by the system, W = -500 J
Initial internal energy
![U_i=2000\ J](https://img.qammunity.org/2020/formulas/physics/middle-school/qqp8nmbzk05zk288ck70kq1pc93y4nur34.png)
We know from first law of thermodynamics:
![\Delta U = U_f-U_i=Q+W](https://img.qammunity.org/2020/formulas/physics/middle-school/1lvf5imw8kx9worgocmrttwczrd3w9l0pg.png)
So, final internal energy will be :
![U_f-2000\ J=1000\ J-500\ J](https://img.qammunity.org/2020/formulas/physics/middle-school/jy77dsn7gr87ox1i2u07g1b6ipdxr03smc.png)
![U_f=2500\ J](https://img.qammunity.org/2020/formulas/physics/middle-school/xqywwj8y78b9hehbsn3d74bpf5nmgj280g.png)
So, the final internal energy of the system is 2500 J.