(b) Magnetic field at mid-point $M$ in first case is $B = B_{PQ} - B_{RS}$
$(\therefore B_{PQ}\ and\ B_{RS}\ are\ in\ opposite\ directions)$
$= \frac{4{\ \mu}_{0}}{4\pi d} - \frac{2\ \mu_{0}}{4\pi d} = \frac{2{\ \mu}_{0}}{4\pi d}$
When the current 2 A is switched off, the net magnetic field at $M$ is due to current 1 A
$B^{'} = \frac{\mu_{0} \times 2 \times 1}{4\pi d} = B$