a. If blocks A and B move together, the friction between A and B is static and friction between B and ground will be of kinetic nature.
FBD of A + B
For A and B, both move with constant velocity; the net force acting on the system of A + B should be zero.
F=fr=μN=μ(mA+mB)g
b. If A is held at rest. The friction force on top and bottom surface of block B will be kinetic.
Friction at the top surface of block B,
f1=μN1=μmAg
Friction at the bottom surface of block B,
f2=μN2=μ(mA+mB)g
If block B moves with constant speed,
F=f1+f2=μmAg+μmAg+μ(mA+mB)g
F=μ(2mA+mB)g
c. Now A and B are connected by light string. If force is applied on block B, block B will move towards left. As blocks A and B are connected by string, block A will move towards right. The direction of friction force will be opposite to relative motion and its shown in Fig.
From FBD of A: T=f1=μN1=μmAg
From FBD, of B: F=f1+f2+T
=2f1+f2
=2μmAg+μ(mA+mB)g
⇒F=μ(3mA+mB)g