(a) When substances are mixed in equal volume then density
$= \frac{\rho_{1} + \rho_{2}}{2} = 4 \Rightarrow \rho_{1} + \rho_{2} = 8$ …(i)
When substances are mixed in equal masses the density
$= \frac{2\rho_{1}\rho_{2}}{\rho_{1} + \rho_{2}} = 3$
$\Rightarrow 2\rho_{1}\rho_{2} = 3(\rho_{1} + \rho_{2})$ …(ii)
By solving (i) and (ii) we get $\rho_{1} = 6$ and $\rho_{2} = 2$