One formula unit of MgBr2 is one Mg+2 ion and two Br-1 ions and one formula unit of water is one H2O molecule.why one unit of water is written in the form of molecule where as MgBr2 is written in form of ions??