If you realized that you were dreaming while in the dream, then it was a lucid dream. It sounds like you had one!

I'm skeptical on shared dreaming. What do you mean, "they both attempted the same thing?"