10 j of heat are removed from a gas sample while it is being compressed by a piston that does 20 j of work. what is the change in the internal energy of the gas sample?