Similarly to this question, you are doing internal transfers:
Transferof-26shares of ATransferof20shares of BTransferof100of USD (on the same Account as A & B)
If you want to visually link these transactions, you can set the same tag on all of them, eg. M&A/A acquired by B