Here's what I get.
Your text may have slightly different values for the enthalpies of formation.
Here's the enthalpy diagram I created in Excel.
Step 1 is the decomposition of water into its elements (the green arrow).
Step 2 is the formation of MgO(s) from its elements (the red arrow).