If the square of x plus XY equals 2 and the square of y plus XY equals 7, then what is the square of x plus 2 and the square of XY plus y

If the square of x plus XY equals 2 and the square of y plus XY equals 7, then what is the square of x plus 2 and the square of XY plus y

x^2+2xy+y^2
=(x^2+xy)+(xy+y^2)
=2+7
=9