Original: Both her mother and her father came from samurai families.
Simplified: Both, her mother and her father, came from samurai families.