This is the 718th most frequent Hungarian word.
melyben
"In which" or "wherein."
In this case, as a relative pronoun ('in which'), it applies to 'doboz' ('box') specifying where the memories were stored.
Találtam egy dobozt, melyben régi emlékeket őriztek.
I found a box in which old memories were kept.
Used as a relative pronoun ('in which') to introduce a relative clause modifying 'ház' ('house').
Ez az a ház, melyben lakom.
This is the house in which I live.
Here, as a relative pronoun ('in which'), it refers to 'könyv' ('book') indicating content.