Solve for x (x+1)(2x+5)=(2x+3)(x-4)+5