Answer: Desire determines thoughts. If it were the other way around, it would be good. But in fact, desires determine everything. This is what the Creator said: “I created desire,” an evil one at that. Thoughts appear in order to attain what is desired.
That is, at first I want, and then thoughts come to me about how to solve this problem. Thus, desire is primary and thought is secondary.
From the Kabbalah Lesson in Russian 2/3/19