An equilateral triangle is drawn by joining the midpoints of the sides of another equilateral triangle. A third equilateral triangle is drawn inside the second one joining the midpoints of the sides of the second equilateral triangle, and the process continues infinitely. Find the sum of the perimeters of all the equilateral triangles, if the side of the largest equilateral triangle is 24 units.