after the previous step if we use Pythagorean Theorem
we get 400 = (x + 4)2 + (y+4)2
and x+y =20 by solving we get x = 8, y = 12 (we can sub. and check)
so the sides are 20 , 4+8 , 4+12 = 20,12,16
now 20:12:16 = 5:3:4
therefore it is similar to a tri. with sides 3,4,5.