The chemical formula of the said compound i.e X2O 5 shows that the valency of X is 5 whereas that of O is 2. For the chloride formation with X, the valency of X will be 5 and for Cl it will be 1 . So the chemical formula of the compound formed is XCl5.