Select the two shapes created in the previous step and go to the Transparency panel. Open the fly-out menu and click on Make Opacity Mask. In the end your shape should look like the second image shown. Select this masked shape and make a copy in front.