Input (grade 9): He later moved to Madrid where he studied with Anton Raphael Mengs, a painter who was popular with Spanish royalty.
Output (grade 9): Goya later moved to Madrid where he studied with Anton Raphael Mengs, a painter who was popular with Spanish royalty.