Consider a square and a regular octagon (an 8
8
-sided figure with sides of equal length). One side of the square is 8
8
feet longer than a side of the octagon, and the two figures have the same perimeter. What are the lengths of the sides of each figure? (Round to two decimal places if necessary.)