Give an example of the law constant composition?

for example in water (H2O), 2 hydrogen atoms combine with 1 oxygen atom so their mass ratio is 2;16 or 1;8, that means 1g hydrogen always requires 8g of oxygen to form the 9g of water.