For the formation of magnesium selenide (MgSe), the Born-Haber cycle is as follows:
$$Mg(s) \rightarrow Mg(g)$$
$$I_1 = 738 kJ/mol$$
$$Mg(g) \rightarrow Mg^+(g) + e^-$$
$$I_2 = 2128 kJ/mol$$
$$Se(s) \rightarrow Se(g)$$
$$I_3 = 226 kJ/mol$$
$$Se(g) \rightarrow Se^-(g) + e^-$$
$$EA_1 = 195 kJ/mol$$
$$Mg^+(g) + Se^-(g) \rightarrow MgSe(s)$$
$$\Delta H_f = -2952 kJ/mol$$
$$\Delta H_f = -[I_1 + I_2 + I_3 + EA_1]$$
$$= -[738 kJ/mol + 2128 kJ/mol + 226 kJ/mol + 195 kJ/mol]$$
$$= -3287 kJ/mol$$
The energy released in the formation of one mole of bonds in MgSe is therefore 3287 kJ/mol.
Note: The lattice energy of MgSe is not included in this calculation, as we are only interested in the energy released in the formation of the bonds between the magnesium and selenide ions.