Three circles are drawn, so that each circle is externally tangent to the other two circles. Each circle has a radius of 2. A triangle is then constructed, such that each side of the triangle is tangent to two circles. Find the perimeter of the triangle.