The sum of a number and 3 is the sum of the squares of a number and 2

The sum of a number and 3 is the sum of the squares of a number and 2

solution
Let this number be X
The equation is
x+3=x²+2²