Hello, i'm stuck with a maths question i hope you can help with.

Say to be 100% (A) needs = 5 of (B), 12 of (C), 2 of (D).

5+12+2 = 19

But (A) currently has say 1(B), 8 (C), 1(D).

so i know it has 1+8+1=10 , which is 10/19*100 = 52.6% of total (A) needs to be whole.

Here is the problem i can't get my head around.

(A) might have more of one or all of (B),(C) or (D) then it needs.

for example 12(B) instead, but it only needs 5(B).

I want to make it so the value can be greater than 100%, but doing 12+8+1 = 21/12*100 = 110% is incorrect as it still does not have enough of (C) or (D) it needs.

Thank you for your help.