Input (grade 10): Soon afterwards Anne finds Tom's London house, only to see him emerge from a sedan chair which also contains Baba, whom he has just married.
Output (grade 4): Soon afterwards Anne finds Tom's London house. She arrives just in time to see Tom get out of a sedan chair with Baba, whom he has just married.