I need help writing an equation?

Write an equation to show how hard water containing magnesium chloride (MgCl2) is softened by using potassium carbonate (K2CO3). List the magnesium-containing compound first on both sides of the equation, enter coefficients without a space between the formula and its coefficient. Leave off coefficients of 1 (1 is implied).
_____ + ____ -----> ____ + _____

is this is how you write the equation???correct me if i'm wrong please!
Mg + Cl2 -----> Mg + K2 CO3

MgCl2 + K2CO3 = MgCO3 + 2KCl

Note the numbers following the element should be written in subscript (can't do it here). The 2 in front of the KCl should be written as above. The equals sign should be an arrow as the equation is not reversible.

All ingredients on the left will dissolve in water, ie ionize. The KCl will also be soluble in water. The MgCO3 will precipitate out thus allowing the Mg to be removed from the water by filtration
The balanced equation is:

MgCl2 (aq) + K2CO3 (aq) --> MgCO3 (s) + 2 KCl (aq)

the (aq) means that the compound dissolves in water (aqueous). The (s) after the Magnesium carbonate means that this material is a solid. Overall you remove the water soluble Magnesium +2 ions by reacting them with water soluble Carbonate -2 ions to give insoluble Magnesium carbonate (as a solid).

The answers post by the user, for information only, FunQA.com does not guarantee the right.