How to sell tokens with BNB, the system transfers tokens to the buyer

How to sell tokens with BNB, the system transfers tokens to the buyer.
I want to sell my token, when a client transfers BNB and a contract wallet, 1 of my tokens will be automatically transferred back to the client.
Please show me how