How to enter merger and acquisition transactions

Similarly to this question, you are doing internal transfers:

  1. Transfer of -26 shares of A
  2. Transfer of 20 shares of B
  3. Transfer of 100 of 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