The side lengths in yards of a triangle and a square are shown in the diagram. (4x - 2) yd 2x yd 2(x + 7) yd 2.5x yd The perimeter of the triangle is equal to the perimeter of the square. What is the value of x?