Thoughts on how to create linked sliders that control a variable

Whenever you change slider1, set it to the actual value and set slider2 to 1 - slider1.value

So if slider 1 is 65 (or 0.65 in a 1 scale) and 1-0.65 = 0.35 then set slider 2 to be 0.35.