Sliders question...

Can anyone tell me how, or if it is possible fundamentally to have:

 

2 sliders that are inserted into a function, and as one slider is changed the other slider is affected, for example as the fist slider is increased, the second decreases according to the function?

 

Thankyou!