Y can actually replace any noun that comes after à, as long as it's not a person! Remember to put it just before the verb.
Tu t'intéresses à la musique.
You are interestedin music.
Tu t'y intéresses.
You are interestedin it.
Ils pensent aux examens.
They thinkabout the exams.
Ils y pensent.
They thinkabout it.
Tu penses à ma suggestion.
You thinkabout my suggestion.
Tu y penses.
You thinkabout it.
J'en ai besoin !
The same way y can replace nouns after à, the word en can replace nouns that come after de, as long as it's not a person.
Je rêve de ce voyage.
I dreamabout this trip.
J'en rêve.
I dreamabout it.
Nous avons peur de cet examen.
We are afraidof this exam.
Nous en avons peur.
We are afraidof it.
Ils ont besoin d'aide. Ils en ont besoin.
They needhelp. They needit.
J'habite à Paris depuis un an
If you put depuis before a particular time, it means you've been doing something since that time. If you put depuis before an amount of time, it means for that amount of time.