Tax smart contract explanation

Hello community,
I have a question about how contracts with tax work.

The tax in a contract is based on charging a commission when buying or selling.

My question is, these smart contracts, of which there are many, are sent to a wallet after making a swap in eth or erc20?

if you are the one receiving tax you are receiving it in ERC20. you can also automaticlly sell them to receive eth