You will need to use copies of the shapes inside other precomps.
You may want to connect the shapes in the precomps to the shapes in your main comp with expressions for easy animation changes.
If you use one shape as an alpha track matte for the other in a precomp and then use that precomp as an alpha track matte for your image comp, you should be good.
Thanks Szalam, but can you dumb down your answer a bit?
Are you familiar with Track Mattes? If not, go here and read all about them.
Skip the part of my post about expressions for now.
Duplicate your two shapes.
In the precomp, make sure both shapes are at 100% opacity.
Still in the precomp, use one as an alpha track matte for the other.
In your main comp, use the precomp as an alpha track matte for the comp containing your dancer/drummer/hottie.
If that's still too much, back up and start here.
That was insanely easy.
Have a great day.
Glad it worked for you!