Consider the genetic relationship between classes of inorganic substances using the example

Consider the genetic relationship between classes of inorganic substances using the example of magnesium and carbon. Write the reaction equations.

Magnesium is a metal, a reducing agent in terms of chemical properties. Let’s make a chain of transformations:
Mg – MgO – MgCL2 – Mg (OH) 2 – Na2 {Mg (OH) 4}
\
MgS
Decision:
2Mg + O2 = 2MgO;
MgO + 2HCL = MgCL2 + H2;
MgCL2 + 2KOH = Mg (OH) 2 + 2KCL;
Mg (OH) 2 + 2NaOH = Na2 {Mg (OH) 4};
Mg + S = MgS
Carbon is a non-metal and can form acidic oxides in chemical reactions. Let us show its chemical properties by a chain of transformations:
C – CO2 – NaHCO3 – CO2 – H2CO3 – CaCO3;
C + O2 = CO2;
CO2 + NaOH = NaHCO3;
NaHCO3 + HCL = NaCL + H2O + CO2;
CO2 + H2O = H2CO3;
H2CO3 + CaO = CaCO3 + H2O



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.