A compound's recipe is fixed, so each element owns a fixed share of its mass. Pick a formula to split the ring, then set a sample size to turn those shares into grams.
Percent as a decimal, times the sample mass, gives the grams of that element. The shares add to 100%, so the gram columns add back to the sample mass.