We need to find the x value.
The given figure is a rectangle and we have the perimeter when we sum all its sides.
So we have 4 sides which are x in, x in, 2 in and 2in and the sum has to be equal to 18in.
So P = x+x+2+2 = 18
Solve the equation for x
x+x+2+2 = 18
2x+4 = 18
subtract 4 on both sides
2x+4-4 = 18 -4
2x = 14
Divide by 2 into both sides
2x/2 = 14/2
x = 7
So 7 is the x value
Replace the x on the equation to confirm
x+x+2+2 = 18
7+7+2+2 = 18
14+4 = 18
The answer is correct.