Between magnesium carbonate and calcium carbonate, which one is more thermally stable? Explain your answer.

Write the decomposition reaction for each.

Balance the equation.
Look up dHo formation for the products and reactants.
dHrxn = (n*dHo formation products) = (n*dHo formation reactants).
Compare the dHrxn values.

OR, and this probably is simpler, look up the decomposition temperature of CaCO3 and MgCO3 and wee which is higher. That will be the more stable.