It took two years, but there is some measure of justice for 51-year-old James Patrick Stuhlman, whom a trio of teens tried to rob, then shot dead, while he was walking his dog in Philadelphia in 2015.

According to NBC-10 and the Philadelphia Inquirer, a jury late last week found 17-year-old Brandon Smith guilty of second-degree murder for his part in the attempted robbery-shooting of Stuhlman in Philly's Overbrook section in March 2015.

Smith could face a prison sentence of 30 years to life in the shooting, despite the fact that he never touched or fired the gun, according to media reports:

Brandon Smith, 17, (left) has been found guilty second-degree murder for his part in the attempted robbery and fatal shooting of James Stuhlman, 51, in March 2015. The shooter, Tyfine Hamilton (right), just 15 at the time, earlier pleaded guilty to shooting Stuhlman and is serving 25 to 80 years in prison.

Pennsylvania's second-degree murder law lets the jury convict anyone involved in a conspiracy to commit a felony crime that results in the death of the victim, regardless of whether they used the weapon, the Inquirer writes.

The 15-year-old shooter, Tyfine "Tavon" Hamilton, pleaded guilty last year to third-degree murder and was sentenced to 25 to 80 years in prison, the Inquirer reports, adding:

Their 14-year-old accomplice, Alston Zou-Rutherford, pleaded guilty to robbery and conspiracy and will remain in a juvenile facility until he is 21.

Hamilton allegedly came up with the idea of robbing someone, prompting the three teens to head toward the Overbrook School for the Blind, where they walked around for about 10 minutes searching for a victim before spotting the "old man" walking his dog.

Stuhlman, who owned a landscaping business, leaves behind a wife and a daughter.