Simplify (x^2+2x+1)/((x^2-3x-18)/((x^2-1)/(x^2-7x+6)))