When brokers ask buyers to pay fees, do buyers pay a percentage over and above the negotiated price or are the fees taken from the amount the seller would recieve?

For example if you oay $10,000,000 for a business, would the fee be taken from this amount or would a buyer need to pay a fee on top? E.g 10M x 3% = total price to buyer $10,300,000.

Thank you