The simplest whole number ratio of percentage of elements will be same according to law of multiple proportions.
Compound -1
ratio:-
[tex]\\ \sf\longmapsto \dfrac{57.1}{42.9}=1.33[/tex]
Compound-2
ratio
[tex]\\ \sf\longmapsto \dfrac{72.7}{27.3}=2.66[/tex]
Now compound ratio:-
[tex]\\ \sf\longmapsto \dfrac{2.66}{1.33}=2[/tex]
Hence verified