Three gas-phase reactions were run in a constant-pressure piston apparatus as shown in the following illustration. For each reaction, give the balanced reaction and predict the sign of $w$ (the work done) for the reaction.
If just the balanced reactions were given, how could you predict the sign of $w$ for a reaction?