A metal X forms two different chlorides. If 12.7g of chlorine A and 16.3g of chloride B contain 7.1g and 10.7g of chlorine respectively, show that the figures agree with the law of multiple proportions. Write their formulae

Check those numbers. I think you may have transposed the g Cl