Let
f(x) = -x + 3 if x >= 1
f(x) = 2x + 1 if x < 1
Find the sum of all values of x such that f(x) = 0
The sum of all values is 18.