DOVER, Del. — Delaware’s Supreme Court has upheld the life sentences of a former death row inmate convicted of killing two teenagers 30 years ago.

The court on Wednesday rejected Freddy Flonnory’s challenge to the mandatory life sentences he received in 2004. Flonnory was retried after his death sentences were overturned in 2001.

His appeal centered on a 2012 U.S. Supreme Court ruling that mandatory life sentences for juvenile murderers were unconstitutional.

The justices noted that Flonnory was 18, not a juvenile, when Angela Farmer and Danya Adams were murdered in 1997.

Flonnory’s accomplice, Korey Twyman, who was 15 years old at the time, was sentenced to two mandatory life terms in 1999, but he was resentenced in 2014 to 25 years in prison for first-degree murder and 15 years for second-degree murder.