The perimeter of the rectangle ABCD is 30 cm. Three other rectangles are placed so that their centres are at the points A, B, D. The sum of their perimeters is 20 cm. What is the total length of the thick line?