Please make an attempt. It requires some thought, not just a quick glance.
Here is a start, showing which parts are included in the sum of the perimeters of the triangles:
View attachment 13622
The sum of these 12 segments is 20.
Do the same thing (in different colors) for the quadrilaterals and the outer triangle, then think about it.
I did the same by denoting the outer red segments A and the inner red segments B( the sum of the segments needed to know) and the black segments C. There fore 20 - A = B .. 19 - A= C and 25 - B = C .
Hence : 19 - A=25 - B
25 - 19= B - A
6 = B - A ..... i
20=B + A ....ii
Simultaneous equation
A= 7. Recall 20 - A = B .
Therefore B ( sum of the line of segments) = 13....