I am using Blender Cycles to render the following 2 layers:
However, I would like the overlapping parts in image 2 (see arrows) to be transparent, not black. I have already searched for many things here (alpha over, mask layer, etc), but I still don't know what I need to do exactly in order to make those black parts transparent.