Given | X-2 | + x ^ 2-xy + 1 / 4Y ^ 2 = 0, find the value of X and y

Given | X-2 | + x ^ 2-xy + 1 / 4Y ^ 2 = 0, find the value of X and y

The equation | X-2 | + x ^ 2-xy + 1 / 4Y ^ 2 = 0 can be reduced to:
|x-2|+(x- y/2)²=0
In order for the above formula to be true, it is necessary to make:
X-2 = 0 and X - Y / 2 = 0, that is, x = Y / 2
The solution is: x = 2, y = 2x = 4