An element, X, forms a volatile hydride XH3 with a vapour density of 17.0. The…