Find all solutions of the equation
|x^2 - 30x - 1| + |x^2 - 30x + 29| = 30.
The solutions of the equation are x = 1 and x = 29.