Answer :
Divide each isotope mass by 100 and times it by the percentage of that isotope. Add them all together and there's your answer.
For example:
If you had 79% of Mg-24 then it would be (24/100) × 79.
Etc
For example:
If you had 79% of Mg-24 then it would be (24/100) × 79.
Etc