\( \frac{5(x+1)-2(x+2)}{(x+2)(x+1)} = \frac{1}{2}\)
\( 2((5(x+1)-2(x+2)) = (x+2)(x+1)\)
\( 10x +10 -4x - 8 = x^2 +3x+ 2\)
\(x^2 -3x = 0\)
\( x(x-3)= 0\)
\(x_1 = 0\)
\(x_2= 3\)