A metal is extracted from its ore by the electrolysis of its molten chloride and…