The law of multiple proportions, states that when two elements combine to form more than one compound, the mass of one element, which combines with a fixed mass of the other element, will always be ratios of whole numbers. You divide each by the smallest, and you should get the right kind of ratio. We do as follows:
H in N2H4 = 1.4x10^-1
1.4x10^-1 / 2.4x10^-2 = 6
H in NH3 = 2.4x10^-1
2.4x10^-1 / 2.4x10^-2 = 10
H in HN3 = 2.4x10^-2
2.4x10^-2 / 2.4x10^-2 = 1