Answer
See answer below.
Work Step by Step
a) The process is endothermic so heat is required and since the volume of the system increases, work is done by the system on the surroundings.
b) The process is endothermic so heat is required and since the volume of the system increases, work is done by the system on the surroundings.