\[\begin{array}{*{20}{l}}
{DK:\left\{ {\begin{array}{*{20}{l}}
{x > - 2}\\
{y > 1}\\
{x + y > 0}
\end{array}} \right.}\\
{\left( 1 \right) \leftrightarrow \sqrt {\left( {y - 1} \right)\left( {x + y} \right)} + \sqrt {\left( {x + 2} \right)\left( {x + y} \right)} = 2\sqrt {\left( {x + 2} \right)\left( {y - 1} \right)} }\\
{ \leftrightarrow \sqrt {x + y} \left( {\sqrt {y - 1} + \sqrt {x + 2} } \right) = 2\sqrt {\left( {x + 2} \right)\left( {y - 1} \right)} }\\
{a = \sqrt {y - 1} ;b = \sqrt {x + 2} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} \left( {a,b > 0} \right)}\\
{ \to {a^2} + {b^2} = x + y + 1}\\
{ \to {a^2}{b^2} = xy - x + 2y - 2}\\
{\left( 1 \right) \leftrightarrow \sqrt {{a^2} + {b^2} - 1} \left( {a + b} \right) = 2ab}\\
{\left( 2 \right) \leftrightarrow {x^2} + {y^2} + 4xy - 4x + 2y - 5 = 0}\\
{ \leftrightarrow {{\left( {x + y} \right)}^2} + 2xy - 4x + 2y - 5 = 0}\\
{ \leftrightarrow {{\left( {{a^2} + {b^2} - 1} \right)}^2} + 2{a^2}{b^2} - 2\left( {{a^2} + {b^2} - 1} \right) - 1 = 0}\\
{}\\
\begin{array}{l}
\begin{array}{*{20}{l}}
{\left\{ {\begin{array}{*{20}{l}}
{\sqrt {{a^2} + {b^2} - 1} \left( {a + b} \right) = 2ab\left( * \right)}\\
{{{\left( {{a^2} + {b^2} - 1} \right)}^2} + 2{a^2}{b^2} - 2\left( {{a^2} + {b^2} - 1} \right) - 1 = 0\left( {**} \right)}
\end{array}} \right.}\\
{\left( * \right) \leftrightarrow \sqrt {{{\left( {a + b} \right)}^2} - 2ab - 1} \left( {a + b} \right) = 2ab}\\
{\left( {**} \right) \leftrightarrow {{\left[ {{{\left( {a + b} \right)}^2} - 2ab - 1} \right]}^2} + 2{a^2}{b^2} - 2\left[ {{{\left( {a + b} \right)}^2} - 2ab - 1} \right] - 1 = 0}\\
{S = a + b{\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} P = ab{\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} {\mkern 1mu} {\kern 1pt} \left( {S,P > 0} \right)}\\
{HPT \leftrightarrow \left\{ {\begin{array}{*{20}{l}}
{\sqrt {{S^2} - 2P - 1} .S = 2P\left( * \right)}\\
{{{\left( {{S^2} - 2P - 1} \right)}^2} + 2{P^2} - 2\left( {{S^2} - 2P - 1} \right) - 1 = 0\left( {**} \right)}
\end{array}} \right.}\\
{ \leftrightarrow \left[ \begin{array}{l}
S = - 2;P = 1\\
S = 2,P = 1\\
S = - 1,14438,P = - 0,784076\\
S = 1,14438,P = - 0,784076
\end{array} \right.}
\end{array}\\
P = 1;S = 2 \to \left\{ \begin{array}{l}
a + b = 1\\
ab = 1
\end{array} \right. \leftrightarrow \left\{ \begin{array}{l}
a = 1\\
b = 1
\end{array} \right. \leftrightarrow \left\{ \begin{array}{l}
\sqrt {y - 1} = 1\\
\sqrt {x + 2} = 1
\end{array} \right. \leftrightarrow \left\{ \begin{array}{l}
y = 2\\
x = - 1
\end{array} \right.
\end{array}
\end{array}\]