By the classification of sight craving etc., six kinds of craving is shown (by the Buddha) in this teaching/this phrase of "with feeling as condition, craving" .
In that sixfold craving, according to the mode of occurrence of each of them, threefold (each) are known (by the wise). Tattha (tāsu chasu taṇhāsu) ekekā pavattākārato tividhā paṇḍitena matā. (Nissaya, p181)
To explain in detail, in this phrase, "vedanāpaccaya taṇhā", just as the son is shown by means of the name come (āgato) from the father thus "wealthy merchant‘s son, the brahman's son",
in Vibhaṅga sixfold craving is shown by means of the name come from the object thus, "sight craving...sound...odour...flavour...tangible...other things/dhamma craving".
In those cravings, according to the occurrence of each craving, threefold are known thus, "sensual craving, existence craving, non-existence craving".
To explain in detail, whenever sight craving occurs enjoying the sight object which becomes clear to the eye by means of sensual gratification, at that time, it is "kāmataṇhā" (sensual craving) by name.
Whenever it (sight craving) occurs together with eternity view occurred thus, “that very object is certain, eternal”, at that time, it is ”bhavataṇhā“ by name.
Indeed. lust accompanied with eternity view is called "bhavataṇhā"(existence craving).
On the other hand, whenever it arises together with annihilation view arisen thus, “that very object ceases, perishes”, at that time, it is "vibhavataṇhā" by name.
Indeed, the lust accompanied with annihilation view is called “vibhavataṇhā”.
The similar way should be understood for sound craving and so on.
These are the eighteen cravings.
Those (cravings) are eighteen with respect to internal sight/colour etc., and eighteen with respect to external sight/colour, thus are thirty-six.
Thus, thirty-six in the past, thirty-six of the future, thirty-six of the present, thus are one -hundred-and-eight cravings.
Again, those cravings are said in brief as six kinds by means of color object etc., or as three kinds only by means of sensual craving etc., thus should be known.