(a) There is no friction between the body $B$ and surface of the table. If the body $B$ is pulled with force $F$ then
$F = \left( m_{A} + m_{B} \right)a$
Due to this force upper body $A$ will feel the pseudo force in a backward direction
$f = m_{A} + a$
But due to friction $A$ and $B$, body will not move. The body $A$ will start moving when pseudo force is more than friction force
$i.e.$ for slipping, $m_{A}a = \mu\ m_{A}g$
$\therefore a = \mu g$