If XY is a real number and M = 3x ^ 2 + 2Y ^ 2-2xy-4x-2y-3, determine the minimum value of M!

If XY is a real number and M = 3x ^ 2 + 2Y ^ 2-2xy-4x-2y-3, determine the minimum value of M!

m=x^2+y^2-2xy+2x^2-4x+2+Y^2-2y+1-6=(x-y)^2+2(x-1)^2+(y-1)^2-6>=-6
The answer is - 6