Please help me with chemistry

Table Giving Answer
Element Atomic mass % Amount
Mg_24 24 79 18.96
Mg_25 25 10 2.5
Mg_26 26 11 2.86
Total 24.32
Discussion
The method of calculation for this table, which was done in Excel (a spread sheet) is shown below. Assume that there is 100 grams of material of "pure" magnesium. What is it's mass?
Sample Calculation
The the sample atomic mass = 24
Mass = % * sample atomic mass
Mass = 79% * 24
Mass = (79/100) * 24
Mass = 18.96
Note
The other two elements are found exactly the same as the sample calculation.
Then all you do is add the 3 masses together.
Answer
The mass of Mg to 1 decimal place is 24.3 <<<< Answer.