Problem 728: (1991 AIME, 1)
Find $x^2+y^2$ if $x$ and $y$ are positive integers such that \[ \begin{aligned} xy+x+y&=71, \\ x^2y+xy^2&=880. \end{aligned} \]
- Let $s=x+y$ and $p=xy$. Then $s+p=71$ and $sp=880$, so $s$ and $p$ are the roots of $t^2-71t+880=0$, namely $16$ and $55$.
- If $s=16$, $p=55$, then $\{x,y\}=\{5,11\}$. ($s=55$, $p=16$ gives no integers.)
- $x^2+y^2=s^2-2p=256-110=146$. The answer is $\boxed{146}$.
Find $x^2+y^2$ if $x$ and $y$ are positive integers such that \[ \begin{aligned} xy+x+y&=79, \\ x^2y+xy^2&=1008. \end{aligned} \]