how many gram of oxygen in persent in 36 gram of water?

In each H2O molecule, 16/18 or 8/9 of the mass is oxygen. That ratio applies to any amount of water (except "heavy water").

What is 8/9 of 36 grams?