Let's say there are two variables a & b, both a & b would have a value between a predefined range.
a = x1 to y1 (range) b = x2 to y2 (range)
Variable a & b are interdependent, if the value of a is x1 then value of b would be x2 and vice versa.
a = 5 to 35 b = 40 to 15
if value of a here is 5 then value of b would be 40 and if it increases to 35 then b would be 15. The values would obviously increase or decrease in continuous manner based on what other value is.
What's the most optimum way to solve this pragmatically.