How is money from album sales divided up?

Everyone knows it’s hard to make money playing music… Mostly because of the record deals that artists get duped into signing.