Question: how to calculate how many moles of an element are in a compound?
Answer: Start with the number of grams of each element, given in the problem. Convert the mass of each element to moles using the molar mass from the periodic table. Divide each mole value by the smallest number of moles calculated. Round to the nearest whole number.