How can I Connect two walls together

How can I Connect two walls together

Make sure you've got snapped to grid enabled, position them together the way you want, then group them in the hierarchy.

And if you want the material to be the same across both walls, so the walls can overlap, you can disable “use smart material” or enable it I don’t really remember.

You want smart materials enabled for that.