There’s levels here of course. $40MM isn’t even enough to build and endow a library with your name on it in a major city.
But it is more than the total lifetime earnings of a person, their children, and their grandchildren (two children per generation, 50 year working lifetime) at US median income.