And the seller's agent give buyer's agent 50% of the commission. These are all subject to tax. And this is Event 2. Then your agent gives you some commission back. The commission is subject to tax, so does commission back.
It's two separate events and you cannot combine them.