Either one at any given time could be equal to zero. So
x + 2 = 0
x = - 2
x - 18 = 0
x = 18
I've enclosed a graph of this so you can see that the answers I've given are the ones expected.
Answer:
You should use photomath, it would be more easier for u. Oh, and by the watñy Y=12
Y X
80 32
100 x'
80x' = 100*32
80x' = 3200
x' = 3200/80
x' = 320/8
x' = 40