
This answer is not correct. You were probably thinking correctly that the heat should have a negative sign but where you went wrong was thinking that "w" was positive. You always look at the problem from the point of view of the system...not the surroundings. The system is doing work on the surroundings so the sign for the work will be negative.