The pulley shown in the figure has the radius R and its moment of inertia is I. The rope does not slip on the pulley, which rotates around a frictionless axis. The coefficient of kinetic friction between block A and the table surface is μ_k. The system is released and the block B moves down. If the mass of block A is mA and the mass of block B is mB, find the velocity of block B when it moves down a distance d by using energy methods.