A letter F is composed of 6 unit squares and two rectangles of unit width as in the figure:
Find the lengths of the two rectangles such that the center of gravity is at the center of the middle square.
Each of the horizontal rectangle and the vertical rectangle has a common length approximately equal to 3.37228.