According to ancient Egyptian beliefs, what determined the course of a person’s afterlife?

the weight of the person’s heart
the depth of the person’s thoughts
the clarity of the person’s soul
the balance of the person’s mind