Emily, let's do this.
If the width of the rectangle is w, the length is 2w. The area would be 2w2. The perimeter is 6w.
The perimeter of the square, then, must also be 6w, so each side is 1.5w, because we have 4 equal sides. The area is 2.25w2, but it's also 2w2 + 4, soooo...
2.25w2 = 2w2 + 4
.25w2 = 4
w2 = 16
w = 4
Since the side of a square is 1.5w, then the sides of the square are 6 inches.
Let's check.
Perimeter of the rectangle is 2(4) + 2(8) = 24. Perimeter of the square is also 24.
Area of the rectangle is 4 x 8 = 32. Area of the square is 6 x 6 = 36, which is 4 more than 32.
Hope this helps!