The magnetic field produced by a current-carrying wire at a distance \( r \) is determined by the formula:\[B = \frac{\mu_0 I}{2\pi r}.\]At point P, the magnetic fields originating from wires X and Y must be combined vectorially due to their opposing directions. The magnetic field from wire Y at point P is calculated as:\[B_Y = \frac{\mu_0 I_Y}{2\pi r_Y},\]with \( I_Y = 4 \, \text{A} \) and \( r_Y = 4 \, \text{cm} = 0.04 \, \text{m} \). This results in:\[B_Y = \frac{4\pi \times 10^{-7} \times 4}{2\pi \times 0.04} = 2 \times 10^{-5} \, \text{T}.\]Similarly, the magnetic field from wire X at point P is given by:\[B_X = \frac{\mu_0 I_X}{2\pi r_X},\]where \( I_X = 5 \, \text{A} \) and \( r_X = 6 \, \text{cm} = 0.06 \, \text{m} \). Therefore:\[B_X = \frac{4\pi \times 10^{-7} \times 5}{2\pi \times 0.06} = \frac{10^{-5}}{0.06} = 1.67 \times 10^{-5} \, \text{T}.\]The aggregate magnetic field at point P is the sum of these fields:\[B_{\text{total}} = B_X + B_Y = 1 \times 10^{-5} \, \text{T} + 2 \times 10^{-5} \, \text{T} = 3 \times 10^{-5} \, \text{T}.\]Consequently, \( x = 1 \, \text{m} \).The definitive answer is \( \boxed{1} \).