Next we transform each one of the rectangles into a square:
Finally we transform each two squares into a square, until arriving at an only square with area equal to the sum of the areas of the initial squares:
The square obtained at the end has area equal to thearea of the initial polygon, since all the transformations had been made preserving the areas.