Discuss the below in detail:
Q: A rigid vessel initially contains 2 kmol of carbon and 2 kmol of oxygen at 25?C, 200 kPa. Combustion occurs, and the resulting products consist of 1 kmol of carbon dioxide, 1 kmol of carbon monoxide, and excess oxygen at a temperature of 1000 K. Determine the final pressure in the vessel and the heat transfer from the vessel during the process.