A closed system at 450K holds 800J of energy that can be supplied to a heat engine exhausting into a 300K environment. Before the engine operates, an irreversible internal process increases the system’s entropy by 0.40J/K but leaves its energy unchanged. Determine the maximum amount of work the engine can now deliver.