I'm sorry for my ignorance; I don't even know the correct terminology or proper way to phrase my question. I tried searching but require human assistance. I'm sorely deficient in understanding of basic math and will have to illustrate.
Here's a simple example. Let's say I have the following numerical arrays:
array A: [6,1]
array B: [2,7]
array C: [58,123]
....and I want to find a ratio of A to B which, summed, will result in array C. In this case, I know the answer is 4:17:
4*[6,1] = [24,4]
17*[2,7] = [34,119]
[24,4] + [34,119] = [58,123]
....but I have no idea how to derive that without guesswork, which in my application of this problem will be inadequate because there will be hundreds of arrays, each containing hundreds of numbers. There will usually be multiple possible answers: only one need be found. In some cases there will be no possible answer: the ratio that comes "closest" will be needed then, but that's a whole different animal.