(2x-7)(x+2)+(3x+7)(x+2)

Factor out (x+2) then do simple addition

common factor

5x (x + 2)