Let's say the center of mass of the ring (wheel) moved a distance ##x##, tension in the thread connecting wheel and ##A## be ##T## and tension in the thread connecting ##A,B## be ##T'## :
Due to no slip condition , ##a=R\alpha## where ##R## is the assumed radius of wheel
Since ##P## is IAOR ...