The function f(x) takes a single input x and multiplies it by 2 before subtracting 2.

