The man charged in the death of a Louisville high school senior in 2021 was sentenced Monday to more than 24 years in prison.