The square of X - (20-x) is equal to 40? Such as the title

The square of X - (20-x) is equal to 40? Such as the title

x^2-(20-x)^2=40
x^2-400+40x-x^2=40
40x=440
x=11