Energy is released when a new bonds form.
It would be Magnesium = 1 atom, Oxygen = 2 atoms, Hydrogen = 2 atoms. It has 5 atoms total. There is 1 magnesium and you multiply each element by the the 2 outside the parenthesis to get 2 oxygen and 2 hydrogen.
106.4 is going to be your answer