Draw two intersecting rectangles and color their intersection black.
Use draw to draw the outline of box1 and box2. Create a third rectangle, box3, where the two rectangles intersect. Use fill to draw box3 as a filled rectangle.
draw
box1
box2
box3
fill