How do you get 3 different elements to merge

How do you cad a structure like the image attached? Do suggest in rhino/ solid works.