(a)
As seen from the figure, when the light ray travels from medium A to medium B, it bends towards the normal.
This means that medium B is optically denser than medium A.
Conclusion:
Medium B is denser than medium A.
(b)
The refractive index of a medium is defined as:
μ=Speed of light in medium (v)Speed of light in vacuum (c)
For medium A:
μA=vAc
For medium B:
μB=vBc
Now, refractive index of medium B with respect to A is given by:
μBA=μAμB=c/vAc/vB=vBvA
Therefore:
μBA=vBvA