Perimeter is the sum of all sides of a two-dimensional shape. Therefore, we can construct the following equation to find the value of X:
2x + 4 + 2x + 2 = x + 7 + x + 3 + x + 9
4x + 6 = 3x + 19
4x - 3x = 19 - 6
x = 13
If the perimeter of these shapes is the same, whatever which of them we use for calculating we will find the same result.
Rectangle:
13 + 2 + 13 + 2 + 13 + 1 + 13 + 1 = 58
Or
Triangle:
13 + 7 + 13 + 3 + 13 + 9 = 58
The perimeter is 58.