Step 1: Use magnetic field at the centre of circular coil.
For a circular coil of \(N\) turns and radius \(r\), magnetic field at the centre is:
\[
B = \frac{\mu_0 N I}{2r}
\]
Step 2: Relate radius with number of loops.
The same length of wire is used in both cases. If total length is \(L\), then:
\[
L = N(2\pi r)
\]
So,
\[
r = \frac{L}{2\pi N}
\]
Step 3: Substitute radius in magnetic field formula.
\[
B = \frac{\mu_0 N I}{2 \left(\frac{L}{2\pi N}\right)}
\]
Step 4: Simplify the expression.
\[
B = \frac{\mu_0 N I \times 2\pi N}{2L}
\]
\[
B = \frac{\mu_0 \pi I N^2}{L}
\]
Thus, for the same wire length and same current:
\[
B \propto N^2
\]
Step 5: Apply for case \(X\).
In case \(X\), double loops are formed, so:
\[
N_X = 2
\]
\[
B_X \propto 2^2 = 4
\]
Step 6: Apply for case \(Y\).
In case \(Y\), three loops are formed, so:
\[
N_Y = 3
\]
\[
B_Y \propto 3^2 = 9
\]
Step 7: Find required ratio.
\[
\frac{B_X}{B_Y} = \frac{4}{9}
\]
\[
\boxed{\frac{4}{9}}
\]