For a certain process, q and w are both negative. Which description below best describes what happened during this process?
a. The surroundings gained heat and did work on the system.
b. The system gained heat, and the surroundings did work on the system.
b. The system lost heat and did work on the surroundings.
d. The surroundings lost heat, and the system did work on the surroundings.