f(x) takes a numerical input x and returns a modified version of x that is scaled by a factor of 2 and then offset by 3.

