Use Blend & Comp to apply basic blending and compositing between two inputs, and their mattes, over a background.

To access the Blend & Comp menu, use:
Timeline, then use Batch FX (See Creating ConnectFX).
This node accepts up to two front and matte clips, as well as a back clip, and outputs a result and outmatte.