How to link databases?!?

I am trying to link up two collections. I am building a estate agent website and would like the info for each house on a dynamic page. Although I would like a gallery of 10+ images of the same house on the same dynamic page. Can anyone help me with this? Would it take considerable coding, I’m not a JavaScript expert.