To calculate percent composition, you first need to find the molar mass of C (carbon), H (hydrogen) and O (oxygen). C is 12.01 H is 1.00 O is 16
Then multiply each by the number of atoms of each element in the formula (the number that comes after each element in the equation for example C6 means 6 carbon atoms.