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