WHEATON, Ill. (AP) — An Illinois court has handed a 12–year prison sentence to a suburban Chicago man for an armed robbery two years ago.

A statement from the DuPage County state’s attorney’s office says a judge sentenced 21-year-old Joshua Phillips, of Glen Ellyn, on Monday. Phillips pleaded guilty in September to one count of armed robbery.

READ MORE: For Chicago Sky Superstar Candace Parker, Downtown Victory Rally Was A Dream Decades In The Making

Prosecutors say Phillips and an accomplice, Alonzo Alexander, forced a victim at gunpoint into his car at night on November 26, 2016.

They then made him drive from one ATM to another withdrawing cash. The men were arrested a month later.

READ MORE: LIVE UPDATES: Chicago Sky's WNBA Championship Parade And Rally

The 22-year-old Alexander, of Wheaton, pleaded guilty to the same armed robbery count. He is scheduled to be sentenced on November 19.

They must serve 50 percent of their sentences before they are eligible for parole.

MORE NEWS: Bashful Chance The Rapper Mum On Where He'll Get His Chicago Sky Championship Tattoo

Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.