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.

You can find more short problems, arranged by curriculum topic, in our short problems collection.