I dreamed of going to school with my former colleagues and sharing a dormitory.

In the 24 hours before dreaming, you will unconsciously think about school, or what others said, or what you saw when you browsed the web. It is during this time that you have thought activities related to your colleagues.

So when the two hints are added together, it becomes a dream.