Easy. One of my coworkers was hyphenated. His mother never changed her name when she married, so when the kids came along they were given both names.
Taking the maternal and paternal name is quite common in latin culture.
How exactly they move that along to the next generation I’m not sure. I think the maternal name is dropped, but I’m not certain.