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?

A 50 cm

B 45 cm

C 40 cm

D 35 cm

E impossible to determine