A square is divided into three congruent rectangles. The middle rectangle is removed and replaced on the side of the original square to form an octagon as shown. What is the ratio of the length of the perimeter of the square to the length of the perimeter of the octagon?

Give your ratio in its simplest form.

A square is divided into three congruent rectangles The middle rectangle is removed and replaced on the side of the original square to form an octagon as shown class=