If you work with a real estate agent to buy or sell a home, that agent earns a commission when the deal closes. It's worth understanding how much that costs and who pays so you're prepared for closing ...