Solving equations with absolute value