Change the stroke weight to 0.
Drag across the red shape, purple shape, and black line to select them all.
Choose Object > Group.
Combining objects using Pathfinder effects
Pathfinder effects, found in the Properties panel or the Pathfinder panel (Window > Pathfinder),
are another way to combine shapes in a variety of ways. When a Pathfinder effect such as Unite
is applied, the original objects selected are permanently transformed.
1. Choose 9 Door from the Artboard Navigation menu in the lower-left corner of the Document
window.