Oh, ok I got what you are saying. So let me set up separate equations for blocks B and C. For block B, I would have
$$ T_1 - f = 2Ma $$
and equation for block C would be
$$ f = 3M a_2$$
and we also get the third equation which is from the torque equation.
$$T_1 - T_2 = 1.5 Ma$$
so with the help of above equations, we can now say that
$$ T_1 = 2Ma + 3Ma_2$$
$$ T_2 = Mg - Ma$$
and after plugging this in the torque equation, we get
$$(2Ma + 3Ma_2) - (Mg-Ma) = 1.5Ma$$
This simplifies to
$$a_2 = \frac{g}{3} - \frac{a}{2}$$
Now, if ##\mu_k## is the cofficient of kinetic friction between blocks B and C, then we have ##f = \mu_k (3Mg)##. So we have the equation
$$f = \mu_k (3Mg) = 3M a_2$$
after plugging for ##a_2## , we get
$$\mu_k = \frac{1}{3} - \frac{a}{2g} $$
And, we are given in the problem that ##a = 2\;m/s^2##, so after plugging for that, we get ##\mu_k = 0.23##. Does this sound right ? I think something went wrong since we get that ##a_2 = 2.27\; m/s^2##. This means that block C's acceleration in ground frame is greater than the acceleration of block B. This can not happen since block C is sliding to the left relative to the block B.