An insulated 40 ft^3 rigid tank contains air at 50 psia and 580°R. A valve connected to the tank is now opened, and air is allowed to escape until the pressure inside drops to 25 psia. The air temperature during this process is kept constant by an electric resistance heater placed in the tank. Determine the electrical work done during this process in Btu assuming variable specific heats.