The internal energy of a system is increased by 1200 J when 500 J of work is done on the system. How much energy is transferred from the system as heat?