A gaseous metallic chloride MCl consists of 20.22% of M by mass. The formula of…