Consider three variables x, y, z = 20%, 30%, 50% respectively. Now, let's say i bump up x to 50%. I want to compute the new percentages of y and z to maintain the 100% while in the original ratio of 2:3:5.
I've come up with a non-elegant, messy solution here which i'm not sure is even right and i'm hoping i can construct something more simple and elegant:
- Get ratio of y and z w.r.t x that is = 3/2 and 5/2 respectively
- Find out the difference between 100% and the new value of x = 100 - 50 = 50
- Create an equation as such (3/2)m + (5/2)m = 50 and solve for m. hence, m = 12.5
- y = 12.5 * (3/2) = 18.75
- z = 12.5 * (5/2) = 31.25
I'm sure i'm being stupid and missing out on a very basic ratio equation here. Please help me remember. Thanks!