equality is of no direct moral relevance.
Person A has 20 units of pleasure/happiness
Person B has -10 units of pleasure/happiness
You have the ability to add 100 units to person A, OR 99 units to person B.
Hedonistic theory would add 100 units to Person A
However, if this inequality gap causes bad units to occur, that MUST be taken into account. We want to maximize the sum total of pleasure in society