Allicin (C6H10OS2) contains 59.9 g of carbon, 21.7 g of hydrogen, 24.4 g of oxygen, and sulfur. What is the mass percent of sulfur in a 162 g sample of the compound?
Not an expert here, but I believe that you need to find the total # of grams for the other elements and then subtract that from the total sample.
162-106=60g of sulfur
Then you must make that into a percent.
60/162=.370370 or 37.037%