Let $r$ be the radius of the circle, then for the smaller square we
can apply Pythagoras' Theorem:
and for the larger square:
So $x:y = 2:5$.
This problem is taken from the UKMT Mathematical Challenges.