How do real estate agents get paid

how do real estate agents get paid