Given the total length of the thread, calculate the perimeter (in cm) of the given shape if 2 cm of the thread remains after covering this shape.