Step 1: Understanding the Concept
First law of thermodynamics: \(\Delta U=q+w\). Heat given out by the system is negative, work done on the system is positive.
Step 2: Signs
\(q=-128\text{ J}\) (heat transferred to surroundings), \(w=+62\text{ J}\) (work done on the system).