To quantify that: If the author has self-published on Amazon, 35%-70% goes to the author. (70% above a certain price threshold and assuming the e-book is exclusive to KDP) If published via a publisher, the author is more likely to be getting 10%-15%.
To be fair though, a lot of publishers also do a one time payment deal with authors as well, after achieving a certain milestone of number of books sold.
The more common is an advance payment, but note that these are almost always offset against royalties, not in addition to royalties, and you need to be fairly successful before you'll ever earn out a full advance.
For 99%+ of authors, writing is a hobby that pays less than minimum wage. For self published authors it's often a net loss after costs like editors and cover design.