Draw a rough sketch of a regular octagon. (Use squared paper if you wish). Draw a rectangle by joining exactly four of the vertices of the octagon.
An octagon has eight sides.
If we join any two opposite sides, then we get a rectangle as shown in the above figure.