Hello.
I have a problem and I’m not sure how to solve it.
I need a function two give me a position of a number between two other numbers.
So for example,

function n(top, bottom, x)
--return decimal
end
print(n(150,100,125)) -- expected output: 0.5. because 125 is halfway between 100 and 150