Input (grade 8): Matilda, or Maud, was the daughter of Baldwin V, Count of Flanders and Adèle Capet, herself daughter of Robert II of France.
Output (grade 7): Matilda was the daughter of Baldwin V of Flanders and Adela of France, who was the daughter of Robert II of France.