In chemistry the law of multiple proportions states that if two elements from more than one compound between them then the ratios of the masses of the second element which combine with a fixed mass of the first element will always be ratios of small whole numbers .