Due to the law of conservation of energy we know that the energy that heated the surrounding had to have come from the reaction which means that the wood (with oxygen since this is combustion) lost 12000J. The change in energy for the wood is negative. I hope this helps. Let me know if anything is unclear.