Input (grade 12): The Republic of Texas was an independent state in North America, bordering the United States and Mexico, that existed from 1836 to 1846.
Output (grade 9): The Republic of Texas ended on December 29 1845, when Texas became the 28th state of the United States of America.