A wire is cut into two pieces, one of length $a$ and the other of length $b$. The piece of length $a$ is bent to form an equilateral triangle, and the piece of length $b$ is bent to form a square. If the area of the triangle is twice the area of the square, what is $\frac ab$?