(d) Initially when wires carry currents in the same direction as shown:
Magnetic field at mid point $O$ due to wires 1 and 2 are respectively
$B_{1} = \frac{\mu_{0}}{4\pi}.\frac{2i_{1}}{x}\bigotimes$
and $B_{2} = \frac{\mu_{0}}{4\pi}.\frac{2i_{2}}{x}\bigodot$
Hence net magnetic field at $O\ B_{net} = \frac{\mu_{0}}{4\pi} \times \frac{2}{x} \times (i_{1} - i_{2})$
$\Rightarrow 10 \times 10^{- 6} = \frac{\mu_{0}}{4\pi}.\frac{2}{x}\left( i_{1} - i_{2} \right)\ \ \ldots(i)$
If the direction of $i_{2}$ is reversed then
$B_{1} = \frac{\mu_{0}}{4\pi}.\frac{2i_{1}}{x} \otimes$
and $B_{2} = \frac{\mu_{0}}{4\pi}.\frac{2i_{2}}{x} \otimes$
So $B_{net} = \frac{\mu_{0}}{4\pi}.\frac{2}{x}\left( i_{1} + i_{2} \right)$
$\Rightarrow 40 \times 10^{- 6} = \frac{\mu_{0}}{4\pi}.\frac{2}{x}\left( i_{1} + i_{2} \right)\ \ldots(ii)$
Dividing equation (ii) by (i) $\frac{i_{1} + i_{2}}{i_{1} - i_{2}} = \frac{4}{1} \Rightarrow \frac{i_{1}}{i_{2}} = \frac{5}{3}$