Steps involved in the extraction of metals