Determine the percentage composition of each of the following compounds

a) NaCl
b) AgNO3
c) Mg(OH)2

for NaCl i got na=23/135=0.17 x 100= 17% Cl=35/135=0.26 x 100=26%

for AgNO3 i got 108/42 which im sure was wrong and i didn't get how to complete the problem..
for Mg(OH)2 i didn't have a clue

In a), where did the 135 come from?

In b), where did the 42 come from?

See my answer to your previous post of the same question.

To determine the percentage composition of a compound, you need to find the masses or moles of each element in the compound and then calculate their respective percentages. Let's go through each compound step by step:

a) NaCl (Sodium Chloride):
This compound consists of sodium (Na) and chlorine (Cl).

To find the percentage composition, you need to calculate the mass or moles of each element. Since the molar mass of NaCl is 23 + 35.5 = 58.5 g/mol, you can calculate the following:

Mass of Na: (23 / 58.5) x 100 = 39.32%
Mass of Cl: (35.5 / 58.5) x 100 = 60.68%

So, NaCl is approximately 39.32% sodium (Na) and 60.68% chlorine (Cl).

b) AgNO3 (Silver Nitrate):
This compound consists of silver (Ag), nitrogen (N), and oxygen (O).

To find the percentage composition, you need to calculate the mass or moles of each element. The molar mass of AgNO3 is 108 g/mol. Then, you can calculate the following:

Mass of Ag: (108 / 108) x 100 = 100%
Mass of N: (14 / 108) x 100 = 12.96%
Mass of O: (48 / 108) x 100 = 44.44%

So, AgNO3 is 100% silver (Ag), 12.96% nitrogen (N), and 44.44% oxygen (O).

c) Mg(OH)2 (Magnesium Hydroxide):
This compound consists of magnesium (Mg), oxygen (O), and hydrogen (H).

To find the percentage composition, you need to calculate the mass or moles of each element. The molar mass of Mg(OH)2 is 24 + (16 × 2) + (1 × 2) = 58 g/mol. Then, you can calculate the following:

Mass of Mg: (24 / 58) x 100 = 41.38%
Mass of O: (16 × 2 / 58) x 100 = 55.17%
Mass of H: (1 × 2 / 58) x 100 = 3.45%

So, Mg(OH)2 is approximately 41.38% magnesium (Mg), 55.17% oxygen (O), and 3.45% hydrogen (H).

Remember to always double-check your calculations and check if the sum of the percentages is close to 100%, as there might be some rounding errors.