If f(x) = x + 2, find the value of x if f(x) = 12.