What happens when you paint part of the layer mask
…black? …white? …grey?
When you paint the layer mask black the picture behind the front picture shows up.
When you paint the layer mask white the picture that you painted over with black reveals.
When you paint the layer mask grey, the two pictures that you had at the start reveal themselves in a blending way.