The decomposition of solid barium nitrate leads to the formation of solid barium oxide, diatomic nitrogen gas, and diatomic oxygen gas. Write a formula equation for the reaction.