If the domain is
, it means that you can only accept inputs between -10 and 20.
In other words, you can write f(x) only is x is between -10 and 20.
This rules out the option
, because you can't accept -15 as input, because it's less than -10.
Similarly, if the range is
, it means that the function can only output numbers between -40 and -10.
In other words, you can write f(x)=k only is k is between -40 and -10.
This rules out the first two options, because their output is positive, and also f(0)=0