A stop sign is a regular octagon, formed by cutting triangles off the corners of a square. If a stop sign measures 36 in. from top to bottom, what is the length of each side?