Balance the following equations:

a. C + O2 CO
b. CO + O2 CO2
c. H2 + Br2 HBr
d. K + H2O KOH + H2
e. Mg + O2 MgO

please explain and show work.

a. C + O2 CO

To balance this equation, we need to make sure that we have an equal number of atoms on each side.

On the left side, we have 1 carbon (C) atom and 2 oxygen (O2) molecules. On the right side, we have 1 carbon monoxide (CO) molecule.

To balance the carbon atoms, we need to put a coefficient of 1 in front of CO. This gives us:

C + O2 --> 1CO

Now let's look at the oxygen atoms. We have 2 oxygen atoms on the left side and 1 oxygen atom on the right side. To balance the oxygen atoms, we need to put a coefficient of 1/2 in front of O2. This gives us:

C + 1/2O2 --> CO

Now the equation is balanced with 1 carbon atom on each side and 2 oxygen atoms on each side:

C + 1/2O2 --> CO

b. CO + O2 CO2

On the left side, we have 1 carbon monoxide (CO) molecule and 1 oxygen (O2) molecule. On the right side, we have 1 carbon dioxide (CO2) molecule.

To balance the carbon atoms, we need to put a coefficient of 1 in front of CO2. This gives us:

CO + O2 --> 1 CO2

Now let's look at the oxygen atoms. We have 2 oxygen atoms on the left side and 2 oxygen atoms on the right side. The equation is already balanced.

CO + O2 --> CO2

c. H2 + Br2 HBr

On the left side, we have 1 hydrogen (H2) molecule and 1 bromine (Br2) molecule. On the right side, we have 2 hydrogen bromide (HBr) molecules.

To balance the hydrogen atoms, we need to put a coefficient of 2 in front of HBr. This gives us:

H2 + Br2 --> 2HBr

Now let's look at the bromine atoms. We have 2 bromine atoms on the left side and 2 bromine atoms on the right side. The equation is already balanced.

H2 + Br2 --> 2HBr

d. K + H2O KOH + H2

On the left side, we have 1 potassium (K) atom and 1 water (H2O) molecule. On the right side, we have 1 potassium hydroxide (KOH) molecule and 1 hydrogen (H2) molecule.

To balance the potassium atoms, we need to put a coefficient of 2 in front of KOH. This gives us:

K + H2O --> 2KOH + H2

Now the equation is balanced with 1 potassium atom on each side, 2 hydrogen atoms on each side, and 1 oxygen atom on each side.

K + H2O --> 2KOH + H2

e. Mg + O2 MgO

On the left side, we have 1 magnesium (Mg) atom and 1 oxygen (O2) molecule. On the right side, we have 1 magnesium oxide (MgO) molecule.

To balance the magnesium atoms, we do not need to do anything since there is only one magnesium atom on each side.

Now let's look at the oxygen atoms. We have 2 oxygen atoms on the left side and 1 oxygen atom on the right side. To balance the oxygen atoms, we need to put a coefficient of 2 in front of MgO. This gives us:

Mg + O2 --> 2MgO

Now the equation is balanced with 1 magnesium atom on each side and 2 oxygen atoms on each side:

Mg + O2 --> 2MgO