Once we have two systems, each contains thermal energy at a different temperature at the start. When the two systems are coupled, they interact thermally until they attain thermal equilibrium. Each system has its own set of starting thermal energy, which is determined by
Our target is to find the initial temperature of each gas, so we solve equation for to be
For gas ,the number of moles is localid="1648393481785" and the thermal energy is ,so the values in is
For gas ,the number of moles is and the thermal energy is ,so the values in is
As shown by the two results, gas has a higher initial temperature than gas .
.