Input (grade 7): The city was captured by the combined forces of Aragon and Castile from the armies of the taifa Muslim Emirate of Granada.
Output (grade 9): The forces of King Ferdinand II of Aragon and Queen Isabella I of Castile fought against the armies of the Muslim Emirate of Granada.