in this fig
for block a
firction will act in backward dir for rotation tendency. on block b iit will act in the ffd dir
assuming pure rotation the velocity of pt of contact wrt the block b should be 0.
the friction force will provide the torque to both blocks
and so we get
v of point of contact wrt b =0
wb - (v - wa) =0
solve the torque equations and u get the ans
cheers
do rete if u find it useful