Calculate the number of moles of magnesium present in a magnesium ribbon weighing 12g. The molar atomic mass of magnesium is 24gmol-1.