I was sent a problem which goes roughly like this:
There are 6 moles of diatomic nitrogen in a container at temperature T. Some heat is given to the gas such that 2 moles disociate into atomic nitrogen keeping the temperature constant. Calculate the heat given to the gas.
And the solution says that the change in internal energy would be equal to the heat provided and the change in internal energy can be calculated by comparing the average kinetic energies of the gases which are different since one is diatomic and one is monoatomic.
Is this explanation/solution correct? If yes/no then can you please explain why?