We shall consider here two different ways of inscribing the squares :

In both cases two vertices of the squares are used as "linkage" between the squares,
then touching by these vertices.

• a) each square has its two other vertices on the same side of the given triangle

Hint

• b) each square has its two other vertices on different sides of the given triangle

Hint