https://www.adobe.com/learn/photoshop/in-app/combine-images-to-create-a-composite-using-layer-masks?locale=en&learnIn=1
Make sure to check the INVERT box
x