An artist has been commissioned to make a stained glass window in the shape of a regular octagon. The octagon must fit inside an 18 in square space. Determine the length of each side of the octagon. Round to the nearest hundredth of an inch.