A system does 300 J of work at the same time that 1000 J of energy is transferred to the system as heat. What is the change in the system's internal energy?