Improve the grammar in the sentence:
Even so, in the long run, the government will eventually get back what they have invested on building the infrastructure and the locals will still have a job which prepares them for their retirement.
Even so, in the long run, the government will eventually get back what it invested in building the infrastructure, and the locals will still have a job that prepares them for their retirement.