The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
This question is out of topic.
Anyway, in order to get the mesh connected, you need to have shared surfaces between your solid geometries.
This video shows these shared surfaces, and you will notice them in a different color. when you mesh both, as this surface is common to both geometries, your mesh will be connected.
https://www.youtube.com/watch?v=l7WtSWjhDWA
To solve this, you can combine your solid but keeping the interface:
or in the old panels, use this Geom>>solid edit>>boolean