A 19-year-old man from Stuart was sentenced to 40 years in prison for the fatal shooting of a 39-year-old man in 2024.