Who pays the real estate agent’s commission?

https://www.thebalance.com/who-pays-the-commission-to-the-real-estate-agent-1798867