(MG2+ + 2E- )+2CL
The bit in brackets represents second ionisation energy equation of magnesiul. The 2CL is written like that as that was the step for enthalpy of atomisation for chlorine, hence it is not written as CL2. The born haber cycles are usually in orderly fashion. One thing you must remember is that, for example CL2. When you atomise it, you will times the value by two (since there are two atoms), when you carry out first electron affinity, that value must be timed by two as well (again two atoms).