The given equation breaks down into these two equations
3x+12 = 18 and 3x+12 = -18
Basically 3x+12 equal to plus 18 and minus 18. This is due to the fact that something like |x| = 7 means x = 7 or x = -7, ie those x values are exactly seven units away from zero on the number line.