As f(x) is linear
then assume, f(x) = ax + b
Now compare and solve for a and b.
After getting a and b, just verify whether a(1 + 2b) = -5
As it's not verified so there are two possibilities.
(1) You have typed wrong function
(2) Answer is "No Such f(x) exists"