the three or none because

the A needs the B to break the chains on his hands and the B alone cannot go anywhere with his feet tied so the A will free him thus