an equilateral triangle and a square have the same perimeter. each side of the square measures 6 cm. what is the length of each side of the triangle?