A container holds 4.0 x 1022 molecules of an ideal gas at 0 °C. A piston compresses the gas, doing 30 J of work. At the end of the compression, the gas temperature has increased to 10 °C.
During this process, how much heat is transferred to or from the
environment?