The lengths of two sides of a triangle are 2x² - 10x + 6 inches and x²-x-4 inches. If the perimeter of the triangle is 3x² - 7x + 2 inches, find the length of the third side.
[Hint: draw and label a picture]​