The law of multiple proportions is applicable when two elements form different compounds through varying ratios of their masses. Na$_3$S and NaF do not exemplify this law, as they are not composed of the same elemental constituents in different proportions.