Simplify (2x^5+2x^4-4x^3)/(6x^3-48x^2+42x)*((x-7)^2)/(x+2)