Breakdown of Ils y pensent depuis longtemps, et ils vont en parler à leurs amis.
Questions & Answers about Ils y pensent depuis longtemps, et ils vont en parler à leurs amis.
Here y does not mean there in a literal place sense.
With penser à, French often replaces à + thing/idea with y:
- penser à quelque chose = to think about something
- y penser = to think about it
So Ils y pensent means They are thinking about it.
Fuller versions would be:
- Ils pensent à cela
- Ils pensent à ça (more informal)
So yes, y can sometimes mean there, but in this sentence it stands for à it/about it.
This is a very common question because English uses think about and think of in several ways.
In French:
- penser à = to think about, to have something in mind
- penser de = to think of, in the sense of to have an opinion about
So:
- Ils pensent à ce problème = They are thinking about that problem.
- Que pensent-ils de ce problème ? = What do they think of that problem?
In your sentence, the meaning is they have this thing in mind / they are thinking about it, so French uses penser à, which is why y appears.