Joining rectangles

How do I join a smaller rectangle to a larger one so it is one continuous line, a bit like a comb shape?