Here is an example:
I had a dream that my grandmother and her friend were in my mom's house, in her bedroom. I remember my grandmother's friend being one of the meanest people I ever met and she often times scared me in my childhood.
In the dream, she and my grandmother were looking for money in my mom's room and I remember I told the lady to get the hell out (LOL). Astonished, she left and I told my grandmother to leave the money on the dresser.
In reality: my mother was in the hospital suffering from a blood clot in her leg. My grandmother took her to the doctor and was staying until she got better. She was paying for it which explains why my grandmother was looking for the money in the dream.
Dream analysis: My grandmother's friend was a representation of the blood clot in my mother's leg since she is associated with both my grandmother, my mother, and to me, as being a mean, "sickening", kind of person.
The dream operated as a wish fulfillment to see my mom get better, to see the blood clot removed, to have my grandmothers friend getting the hell out of her house(my mother's body).
It seemed crazy at first but it made sense after I analyzed it. The human mind is amazing!