(b) Bulk modulus, $B = - V_{0}\frac{\mathrm{\Delta}p}{\mathrm{\Delta}V} \Rightarrow \mathrm{\Delta}V = - V_{0}\frac{\mathrm{\Delta}p}{B}$
$\Rightarrow V = V_{0}\left\lbrack 1 - \frac{\mathrm{\Delta}p}{B} \right\rbrack$
$\therefore$ Density, $\rho = \rho_{0}\left\lbrack 1 - \frac{\mathrm{\Delta}p}{B} \right\rbrack^{- 1} = \rho_{0}\left\lbrack 1 + \frac{\mathrm{\Delta}p}{B} \right\rbrack$
Where, $\mathrm{\Delta}p = p - p_{0} = h\rho_{0}g$
= pressure difference between depth and surface of ocean
$\therefore\rho = \rho_{0}\left\lbrack 1 + \frac{\rho_{0}gy}{B} \right\rbrack$ (As $h = y$)