# How to resolve this problem?

### How to resolve this problem?

In this problem there are 3 values, the min, max range and the value used as source to find the unknowns, 360000 is a constant variable which doesn't change.

360000 / 500 = 720 <- The value of 720 is the max range, the 500 is a product of another calculation
360000 / 550 = 654,5454545454545 <- 550 is the number by which the value of both ranges(720, 600) multiplications should be found and after multiplication (which in total has to be equal to 550) and addition they should be equal exactly to 360000

360000 / 600 = 600 <- The value of 600 is the min range, the 600 by which 360000 was divided is also the product of another calculation, which will not matter in this case

What i have to do is to calculate how many times the specific min and max range should be multiplied,
in order to give the constant value of 360000, in the total multiplication of 550.
So an example, in this case the algorithm should return these values:

300 * 600 = 180000
250 * 720 = 180000
180000 + 180000 = 360000
360000 / 550 = 654,5454545454545
300 + 250 = 550 <- which always have to be the exact number of multiplications of both ranges

So in this case, the algorithm should find that for the value of 720 the multiplication
should be 250, and for the value of 600 the multiplication should be 300, but how to do it?
vampire150

Posts: 2
Joined: Fri Jan 11, 2019 1:55 pm
Reputation: 0 