How to make a blue-red map?

Make a right triangle with A on the right and C on the hypotenuse of B.

Make an upward square with the right side A as the side length,

Draw a square to the left with the right side B as the side length.

Make a square with the hypotenuse c as the side length.

In order to understand the attached drawings (taken from Baidu entry):