I'm not one hundred percent sure but wouldn't group selection be most harmful to the ecosystem because they cut down a group of trees all at once instead of one by one.
Mg3(PO4)2 - the molar mass would be 262g/mol, which is 100%
Atomic mass of Mg is 24, since we have 3Mg we multiply by 3 and get a mass of 72
262 : 100% = 72 : x%
x = 72*100 / 262
x = 27.5%
And do that for every element — get the molar mass of P and multiply by 2, use a ratio, and get the molar mass of O and multiply by 8 and use ratios :)
Group 18 is known as the Noble/ Inert Gases