How to cut out four identical isosceles right triangles on the four corners of a 2cm square piece of paper ABCD, Finding the side length of a regular octagon

How to cut out four identical isosceles right triangles on the four corners of a 2cm square piece of paper ABCD, Finding the side length of a regular octagon

The side length of a regular octagon is the hypotenuse of an isosceles right triangle
Let the right edge be X
Then 2-2x = (radical 2) x
Let x = 2 / (2 + radical 2) = 2-radical 2
That is, the side length of a regular octagon is 2-radical 2