In the problem, the equations are

y = sqrt(x) Which can be written as

y^2 = x.

Substitute this value in the second equation. You get

y = -y^2 + 2

Or

y^2 + y - 2 = 0

If you factorize yoy get

( y - 1 )( y + 2 ) = 0

Or y = -2 or y = 1.

Since y = sqrt(x), y cannot be negative.

So y = 1 and x = 1.