To convert percentages into weight take the percentage divided by 100 and multiply by the amount you want in grams. You could use whatever measurement you choose, it doesn’t have to be grams, it could be ounces… But it had to be consistent throughout.
(The ingredient percentage/100) x total...