How do I calculate the percentage by mass of a metal within an impure substance?

A Level