Answer:
q = Positive
w = Negative
Explanation:
As per first law of thermodymanics,
ΔE = q + w
Where,
ΔE = Change in internal energy
q = Heat absorbed or heat released by the system
w = Work done
Sign conventions are used for heat transfer and work done during a thermodynamics process.
Sign convention for Heat transfer
Sign convention for Work done
In the given question, work is done on the surroundings so, w is negative.
Heat flows into a system or in other word heat is added to the system,
So q is positive.