Hello,
Rectangle A: 6cm (x+2)cm
Rectangle B: 3cm (2x+1)cm
The formula for the perimeter of a rectangle is: P=2(base+height)
Then:
![P_A=2(b+h) \\ P_A=2*[6+(x+2)] \\ P_A=2*(x+8) \\ P_A=2x+16 \\ \\ \\ P_B=2(b+h) \\ P_B=2*[3+(2x+1)] \\ P_B=2*(2x+4) \\ P_B=4x+8](https://img.qammunity.org/2015/formulas/mathematics/middle-school/6wv4906mggu6gyzjpa3me12dzdv13788kh.png)
But we know that the perimeters are the same, so:

With the answer of A, we realize that this figure is actually a square.