4B. On the sides of a square with side length 2, isosceles trapezoids are constructed outward, such that the vertices of all trapezoids are simultaneously vertices of a regular dodecagon.

What is the perimeter of the dodecagon?