They are both trying to teach you and make you learn
<span>"There is within me (and with sadness I have watched it in others) a knot of cruelty borne by the stream of love, much as our blood sometimes bears the seed of our destruction, and at times I was mean to Doodle." ☻</span>
Ivan Ilyich screamed for three days straight because he knows he's dying and nothing he did in his life really mattered, he feels the same anguish as Munch's painting. This is precisely why Tolstoy chose to focus on those last days of his life, they are the most dreadful and full of agony, turning Ivan Ilych from a shallow rather frivolous man into a pathetic pitiful hero. there you go
Don't know how to answer because there is no context to this