There is a difference of opinion between Hinayana Buddhism and Mahayana Buddhism in how to grasp about mind. In religious precepts, Hinayana Buddhism denies the things called anger and greed, but Mahayana Buddhism grasps that anger and greed are also a part of the process of reaching enlightenment. If you think quality of anger and greed, you will be able to understand this.
For instance, do you well up emotion of anger when your child does mischief? However, when you see him or her sleeping while crying, you should have the thing to reflect on that you got a little too angry with him or her. This is also the same if you cause emotion of greed. Although you achieve desire temporarily, this expands one after another so you become tired while you try to close that distance; you think “I’ve had enough of this” and you may feel “I don’t need anything if I become healthy” if you get disease. If you think calmly, you should realize that all anger and greed stem from attachment.