Section 2 - Simple Periscope

I’ve created a wedge, duplicated, rotate one of them 180º and place a cube in the midle. Then joined them and after that i edited the object to join the faces.
After that i set the 3d cursor to the bottom edge and set the origin to 3d cursor and set the position to be 0,0,0