Do I have this right:
for the purposes of this example X always fails his escape check so I won't worry about talking about what he does.
Round 1: A grapples X
Round 2: A Pins X (with the +5 circumstance bonus)
Round 3: A uses his move action to draw his manacles/rope, and tries to tie up X suffering a -9 penalty (A gets his +5 circumstance bonus but takes a -10 penalty for grappling his opponent and another -4 for not having his hands free).
A follow up question, does A have to pin X at all? What does it add to the situation beyond a possible failed check and another chance for B to escape?
Also, if A has X pinned, can B tie X up without entering the grapple? RAW no but I don't see any way of getting away from that -10 penalty since to tie someone up (who is actively fighting against it) you need to be in a grapple with them and you can't pin them and tie them at the same time (except with the greater grapple feat)and multiple grapplers can't perform different actions because all the extra bodies have to aid the first.