posted by Tracy .
Use the first law of thermodynamics to determine the amount of heat change, Q, and whther it was added to or removd from the system.
Was W performed upon or extracted from the system?
Usually in thermodynamics, W is the work OUT.
Qin - Wout = deltaU