Percent mass is considered
(mass of part)/(mass of whole) * 100%
You need to take into account the masses that make up the compound for each. If you consider 1 mole of each compound, it will make this simple.
1 mole AgCl is made up of 1 mole of Ag and 1 mole of Cl
1 mole of Ag = 107.87 g
1 mole of Cl = 35.45 g
so, 1 mole of AgCl = mass of Ag + mass of Cl = 107.87 + 35.45 = 143.32 g
Percent mass of silver is: (mass of silver)/(mass of compound) * 100%
107.87/143.32 * 100% = 75.3%
A similar approach to each other question, taking into account the number of each element.
1 mole of C2H6O is made up of:
2 moles of C = 2 * 12.01g/mol = 24.02 g
6 moles of H = 6 * 1.008 g/mol = 6.048 g
1 mole of O = 1 * 16 g/mol = 16
Total mass of C2H6O = mass of C + mass of H + mass of O = 24.02 + 6.048 + 16 = 46.068 g
Percent mass of oxygen is: (mass of oxygen)/(mass of compound) * 100%
16/46.068 * 100% = 34.73%
Use the same approach for the last one to obtain percent mass of each element.
They all must add up to 100%, so if you find one, you can subtract from 100% to get the other.