Let s=x+y and p=xy, then x and y are the roots of T2−sT+p=0,
x2+y2=s2−2p(3)
and
x2+y2+5x+5y+xy=s2+5s−p=12,
thus
p=s2+5s−12.(4)
Using (3) and (4), we get
x3+y3=(x+y)(x2+y2−xy)=s(s2−3p)=s(s2−3(s2+5s−12))=−2s3−15s2+36s=19,
yielding
2s3+15s2−36s+19=0.(5)
It is easy to detect that s=1 is a root of this cubic, and by factoring out s−1, we find the resulting quadratic 2s2+17s−19 which has roots s=1 and s=−19/2. Corresponding to s=1 we find p=−6 from (4). To find x and y, we solve T2−T−6=0 which has roots −2 and 3. We get (x,y)=(−2,3) or (x,y)=(3,−2), both satisfying the original equations.
Corresponding to s=−19/2 we find p=123/4. The equation T2+219T+4123=0 has negative discriminant s2−4p=−4131 hence no real solutions.