An ideal monatomic gas is confined in a container with a movable piston. 30,000 J of thermal energy is added to the gas. The gas does 10,000 J of work while expanding. The change in internal energy of the gas is 10,000 J. 20,000 J. 30,000 J. 40,000 J. Cannot know unless we know how many moles of gas are in the container.