join two parts

Hello, I have created two diffrent parts, and now I want to join them in order they intersect, I attach an image of the two parts:

Thanks in advance

SolidworksAssemblies