DQ = DU - DW ... for work done by the gas

70 = DU - 40

DU = 110 Joules