I found a problem here

How do we go about solving this in Mathematica? I did something like this:
NMinimize[(x^2 + y^2 - 1)^2, {x, y}]
this gives {3.08149*10^-33, {x -> 0.865404, y -> 0.501074}}
And used this y -> 0.501074 and did this:
NMinimize[
x^2 + 0.1*Cos[4 Pi x] + y^2 + 0.1*Sin[4 Pi y] /.
y -> 0.5010739136683062`, x]
which gave
{0.207832, {x -> -0.221351}}
Edit: Actually, I had tried this method and meant to post it today but got late:
F[x_, y_] := x^2 + 0.1*Cos[4 Pi x] + y^2 + 0.1*Sin[4 Pi y];
g[x_, y_] := (x^2 + y^2 - 1)^2;
NMinimize[{F[x, g[x, y]], Derivative[0, 1][g][x, y] == 0}, {x, y}]
I got {0.390615, {x -> -0.627901, y -> -0.778293}}
