I am trying to create a parametric structure and need to create a relationship between the following sets of values. x values: 8,10,12,14,16 and y values: 5,6,7,8,9.

so for example, when I choose the number 10 with a number slider, I can somehow get the number 6 in a different part of my script.

let me know if I need to be more clear. Any help would be greatly appreciated.

Thanks.