Set S to highest tax and AA to the other.