Let the side lengths of the squares be , , and in increasing order.
Then has length so the green region has area .
The line segment has length , so the blue region has area:
These areas are the same, so:
This means that the lengths , , and form the sides of a right-angled triangle, by the converse to Pythagoras' theorem. Triangle is a right-angled triangle with sides and , so its hypotenuse, , has length .
This means that triangles and are both isosceles with angles and equal to each other, and and also equal to each other.