Answer:
900 J
Explanation:
[tex]\Delta U[/tex] = Change in entropy = -300 J (Decrease)
[tex]W[/tex] = Work done = 600 J
[tex]Q[/tex] = Heat transferred
Change in internal energy is given by
[tex]\Delta U=W+Q\\\Rightarrow Q=\Delta U-W\\\Rightarrow Q=-300-600\\\Rightarrow Q=-900\ J[/tex]
The heat transferred to or from the system as heat is -900 J.
900 J is transferred. As heat is transferred from the system the sign is negative.