A plea agreement will prevent a man from possibly spending the rest of his life in prison for a double homicide last year.

Denny Duke Kandt, 21, pleaded guilty to attempted carrying a concealed dangerous weapon, a third-degree felony, and obstruction of justice, a second-degree felony, during a 3rd District Court hearing Friday. In exchange for his plea, prosecutors dismissed two counts of murder, a first-degree felony punishable by up to life in prison.Judge Michael Hutchings could order Kandt, who is already serving a three-to-five-year prison term for an unrelated aggravated assault, to spend up to 20 additional years in prison.

Earlier this month, Phillip Michael Leishman, 20, was sentenced to two concurrent life sentences for fatally shooting Derek Shaw, 24, and Michael Allgier, 19. Leishman confessed he committed the Jan. 19, 1997, slayings in retaliation for the theft and vandalism of a car belonging to Summer Johnson, 18.

According to preliminary hearing testimony, Johnson, who believed Shaw had stolen her Saturn and ripped out the radio, drove Leishman and Kandt to where Shaw lived in West Valley City. Johnson waited in the car while Leishman went to the front of the apartments and Kandt covered the rear.

Not knowing which unit was Shaw's, Leishman asked Allgier, a friend of Shaw's who had just arrived at the complex. Allgier knocked on the apartment door. Shaw answered, and Leishman shot Allgier in the back of the head and then shot Shaw in the leg and head.

Johnson, who is charged with two counts of murder, a first-degree felony, is scheduled for trial in December.