When x = 5, the square of x = 25,2x = 10; when x = what, the square of x = 2x

When x = 5, the square of x = 25,2x = 10; when x = what, the square of x = 2x

X = 2 or 0