Teacher:Given a text, write a compressed version of it in a single sentence.
Teacher: Now, understand the problem? Solve this instance: Lagos was an important trading port under the Moors, but the town enjoyed its heyday after the Reconquest. It was proclaimed the capital of the Algarve, and the governor's palace became the headquarters of Prince Henry.
Student:
Lagos was an important trading port under the Moors. It was proclaimed the capital of the Algarve.