Thinking is an focused activity that generates thoughts. When we focus and think on a particular topic, the subconscious mind tries to retrieve any previous experience related to that particular topic. Once this information is retrieved then the subsequent process of analysis, reasoning, rationalizing etc takes place in the mind. This triggers more thoughts related to the topic and so on.