Given these reactions,

X(s) +1/2 O2(g) --> XO(s)

H=-639.7
XCO3(s) --> XO(s)+CO2(g)
H=+349.7
What is H(rxn) for this reaction?

X(s)+1/2 O2(g)+CO2(g) --> XCO3(s)