How do I get different render layers to interact with each other?

I’m trying to go for this.
image

But I’m getting this.
image