Question 1170185
Let x = the side length of the octagon
Then x+6 is the length of each side of the square
Since the perimeters are equal, we have:
4(x+6) = 8x
8x - 4x = 24 -> x = 6
Thus, the length of the sides of the square is 12