A man has been sentenced to 17 years in prison for his role in a pair of carjackings on the South Side of Chicago in 2022.