Octagonal ratio

Can you find the ratio of the area shaded in this regular octagon to the unshaded area?

Problem



 

Image
Octagonal Ratio



The diagram shows a regular octagon.

What is the ratio of the area of the shaded part of the octagon to the area of the unshaded part of the octagon?

This problem is taken from the UKMT Mathematical Challenges.