Basically, there is no error in the following steps(as it seems), but there is some error due to which 2 + 2 = 5. What is it?
-20 = -20
16-36 = 25-45
16-36+(81/4) = 25-45+(81/4)
(4^2)-(2*4*9/2)+((9/2)^2) = (5^2)-(2*5*(9/2))+((9/2)^2)
(4-(9/2))^2 = (5-(9/2))^2
4-(9/2) = 5-(9/2)
4 = 5
2+2 = 5
Hint -
$a^2-2ab+b^2=(a-b)^2\ne(a+b)^2$
This is your mistake.
Also $x^2=y^2$ doesn't imply that $x=y$ is the only possibility.
It should be $|x|=|y|$.