A \( 1\,\text{m} \) long wire is broken into two unequal parts \( X \) and \( Y \). The \( X \) part of the wire is stretched into another wire \( W \). Length of \( W \) is twice the length of \( X \) and the resistance of \( W \) is twice that of \( Y \). Find the ratio of length of \( X \) and \( Y \).