Hello,

I am a computer science student but I'm facing a math problem which is as the following:

Assuming that I have a number x (where x >=0)

And I want to do a mapping for this x to convert it to the range b1 to b2 (where 0 <= b1 < b2)

Example: if x = 45. How can I find its equivalent in the range 0 - 25 ?

Or if I should look into a specific math area. what should be?

Thank you,