Acid + Base ---> water + salt
Acid + carbonate base ----> water + CO2 + salt
So you may find it useful to work backwards.
so, for example, Magnesium Chloride (MgCl2), well this must have been formed from HCl and Mg(OH)2. Sodium Carbonate, well this must have been formed from sodium hydroxide and carbonic acid. etc...