After years of delays, the man accused of killing a QT store clerk over a pack of cigarettes in Mesa in 2015 has been sentenced to 38.5 years in prison.