The ball-and-socket joint in the shoulder is formed by which…