Answer
See explanation below.
Work Step by Step
The amount of change in internal energy is same in both cases. By the law of conservation of energy, change in energy of the universe is zero. This requires that the change in energy of the system equals an opposite change in energy of the surroundings. Since both systems consume same amount of electrical energy, change in energy of heater equals that of the air conditioner