Mg has three natural isotopes whose isotopic masses and relative abundances are respectively 23.98 (78.60%), 24.98(10.11%) and 25.98(11.29%). The atomic mass of Mg will be
24.31u
Atomic mass of Mg
23.98×78.6100 + 24.98×10.11100 + 25.98×11.29100
= 18.85 + 2.53 + 2.93 = 24.31u