I'm trying to create a sliding scale system where if variable $x$ is low, then variable $y$ will be on the lower end of a $1$ to $10$ sliding scale. If variable $x$ is high (above perhaps a threshold?), then variable $y$ will be on the higher end of the sliding scale.
I can't for the life of me figure out the logic behind that. I've tried to do something like:
$y = \frac{10}{x}$
But in that case, when $x$ is $100$, $y$ will be low. And when $x$ is $1$, $y$ will be high. I need the exact opposite to happen. I imagine this is a common formula but I cant figure it out. Any ideas?