The law of multiple proportions dictates that if two elements form multiple compounds, the masses of one element that react with a constant mass of the other element will exist in simple whole number ratios. Compounds such as H$_2$O and H$_2$O$_2$, formed from hydrogen and oxygen in varying proportions, exemplify this principle.