the pulley shown is smooth. The spring and the string are light. Block B slides down from the top along the fixed rough wedge of inclination theta. Assuming that the block reaches the end of the wedge