The perimeter is the sum of the lengths of the sides.
... perimeter = (3x-2) + (7+x²) + (8-2x)
... = x² +x(3-2) +(-2+7+8)
... = x² +x +13