an equilateral triangle has perimeter 18 inches. what would be the perimeter of a square whose sides each measure the same length as the side of the triangle?