Write balanced molecular and net ionic equations for the following reactions,

Write balanced molecular and net ionic equations for the following reactions, and identify the gas formed in each: solid magnesium carbonate reacts with an aqueous solution of perchloric acid.