"Suppose that x is a number some range [a,b], where would x be in range [c,d]"

I am wondering where the formula used to solve this question comes from, i.e what topic of math, i want to learn more about it on my own. My friend called it a linear transform problem, but was wondering if that is correct? When I search for that I find topics in linear algebra.