Dual arrangement of two adjacent ball-and-socket joints