The publishing house they belong to and their literary agent, are responsible for the finances of the book. The author writes the book, writes the query letter, gets an agent, and bugs publishers until they're accepted.
How much they are paid is based upon the public interest -- whether or not...