##Double suffixation "-sam" and "-keit"
This admittedleyadmittedly peculiar construct results from a double suffixation. In the first place a noun was turned to an adjective by adding the suffix -sam, then it is turned back to a noun with another suffix "-keit".
This is a rather old suffix which is already present in Old High German, but also in Old English. It was and still is used to conevertconvert a noun to an adjective with the meaning of somethionsomething being of the kind or nature of the noun it was added to. Later this suffix was also used to convert verbs to adjectives.
- gemeinsam
- langsam
- wirksam
The liekwiselikewise old suffixes "-keit", and "-heit" are both used in the same meaning. Originally it was used for a shape, person, nature, standing but when added to an adjective this was thereby nominalized with the noun being something of the shape or nature of the adjective it was added to.
- Gesundheit
- Ewigkeit
- Wahrheit
When suffxingsuffixing adjectives from above that were build by suffixing a noun with -sam we end with the resulting double suffixed noun from your examples (which then will have a different meaning from the rooting noun):
- Gemeinsamkeit
- Langsamkeit
- Wirksamkeit
It is not unusual to have constructs being build from several suffixes leading to such hard to decompose words like
- Wahrhaftigkeit