Different methods exist including Kistiakowsky-Wilson rules, Modified Kistiakowsky-Wilson rules, Springall-Roberts rules. Just to give you some terms to start searching with.
This paper avoids fancy math and uses the springall-Roberts rules
http://www3.interscience.wiley.com/journal/112658302/abstractOK, I am blaming you for interfering with my bedtime, but here are the Springall-Roberts rules
1)carbon is converted to carbon monoxide
2) if any oxygen remains than hydrogen is oxidized to water
3) if any oxygen still remains, than CO is oxidized to CO2
4)All nitrogen is converted to nitrogen gas
5) 1/3 of the CO formed is converted to carbon and carbon dioxide
6) 1/6 of the original amount of CO is converted to form carbon and water.
If this is a question for some sort of school class using these rules may be advanced and they are looking for something simpler for an answer the the question they ask. If it is just for your own edification: good for you.