Substitute your values in:
$$(u+iv)^2=x+iy$$
$$u^2-v^2+2iuv=x+iy$$
Since it is assumed that when complex numbers are written in this form that the coefficients are real, thus, we can equate parts:
$$u^2-v^2=x\\2uv=y$$
Solving for $u$ in the latter equation, we have
$$u=\frac y{2v}$$
Substitute it into the other equation:
$$\left(\frac y{2v}\right)^2-v^2=x$$
$$y^2-4v^4=4xv^2$$
$$0=4v^4+4xv^2-y^2$$
This is a polynomial of $v^2$, and we apply the quadratic formula:
$$v^2=\frac{-x\pm\sqrt{x^2+y^2}}2$$
$$v=\pm\sqrt{\frac{-x\pm\sqrt{x^2+y^2}}2}$$
Similar, $v$ can be solved for. One chooses the inner $\pm$ to be $+$ so that the square root is positive, or else $v$ would be complex:
$$v=\pm\sqrt{\frac{-x+\sqrt{x^2+y^2}}2}$$
I leave you to solve for $u$, with the note that the outer $\pm$ stays since
$$(\pm w)^2=z$$