First, notice that the distance between D and E is the following:
next, the length of the segment BC is given by the distance between these two points:
For the next square, notice that the distance betwen A and B is the following:
Finally, the distance between F an G is the following: