The corners of the square, 2m. sides, are cut off to form a regular octagon. What is the length of the side of the resulting octagon?

Duplicate question. Look for my answer elsewhere.