Divide the whole amount by the number of parts in the bar. This gives the value of one percentage part. Multiply the value of one part by the number of parts needed to make the percentage.
When using chemical formula it is possible to calculate the percentage composition of the chemical. This can be useful when extracting metals from ores or when making fertilisers for specific plants.