A closed tank containing hot air has an initial internal energy of 400 kJ. During the next 5 min, the tank loses heat to the surroundings at a rate of 1.5 kW, while an electrical element supplies 1000 W to the air. Find the final internal energy of the air.