Composition of mixtures and purity

A mixture's proportions can vary, so a measured mass percent of one element shows how much of each substance is there; comparing it with the pure compound's percent tells how pure a sample is.

From AP Chemistry.