The rest of the family names are built up from various generations alternating through the Mother's and Father's sides. The very last name is usually the last name for purposes of addressing a person but it is common for the last two to be used - it's a matter of listening to how they are referred to by others but you won't offend by just using the last name as family name. Note that this is slightly different from the similar Spanish system of names.