The diagram is a hat box that is designed with the shape of a regular octagon inside and a rectangle outside. Find the value of x. Please explain.

The diagram is a hat box that is designed with the shape of a regular octagon inside and a rectangle outside Find the value of x Please explain class=