Complex sentence: Some family names exist in Iceland, mostly inherited from parents of foreign origin, whilst some are adopted.
Split into simpler sentences: Some family names exist in Iceland. Most of them are inherited from parents of foreign origin, but some are adopted.