A Wire is first bent into the shape of a triangle. Each side of the triangle is 12 inches long. Then the wire is unbent and reshaped into a square. What is the length of a side of the square?