D, the energy of formation is equal to the dissociation. so from magnesium ions and Hydrogen ions, when they form the lattice energy is equal to formation-dissociation, as they aren't going to dissociate (fixed in lattice) the formation should be the same as the the overall lattice energy.
The parameter used to obtain the lattice energy of the hypothetical ionic compound MgH2 is the standard enthalpy change of formation of MgH2.
The lattice energy of an ionic compound can be estimated by relating it to other quantities in a thermochemical cycle called the Born-Haber cycle.
In the Born-Haber cycle, the following parameters are used to calculate the lattice energy:
https://brainly.com/question/17011733