A square whose side is 2 metres has its corners cut away so as to form an octagon with all sides equal. Then, the length of each side of the octagon in metres is:
(a) \(\frac{\sqrt2}{\sqrt2+1}\)
(b) \(\frac{2}{\sqrt2+1}\)
(c) \(\frac{2}{\sqrt2-1}\)
(d) \(\frac{\sqrt2}{\sqrt2-1}\)