PORTLAND, Maine — Two of three people arrested last month in connection with bank robberies in York County and New Hampshire have pleaded guilty.

Daniel Barry, 38, of Pembroke, N.H., and Brianne Mone, 27, of Dover, N.H., waived indictment Thursday in U.S. District Court and each pleaded guilty to two counts of armed bank robbery.

Marvin Eugene Ansteth, 40, of Somersworth, N.H., also was charged with bank robbery.

The charges against Barry arose from the Oct. 19 armed robbery of Kennebunk Savings in Eliot and the Oct. 26 armed robbery of the Ocean Communities Federal Credit Union in Sanford, according to a press release issued Thursday by the U.S. attorney’s office.

By pleading guilty, Barry admitted that he vaulted over the counter during the Kennebunk Savings robbery and pointed a .44 Magnum revolver at tellers before leaving with nearly $7,900 in cash. He used a .22-caliber revolver to rob the Sanford credit union and abscond with more than $8,500, the press release said.

Both firearms were recovered during a search of Barry’s residence, according to the U.S. attorney’s office.

Ansteth allegedly drove the getaway car for the Kennebunk Savings robbery. Mone admitted driving the getaway car in the Sanford robbery, according to court documents.

The investigation into the York County robberies also allegedly revealed that Ansteth was the getaway driver for armed robberies in Exeter, N.H., on Oct. 7 and Alton, N.H., on Oct. 10. By pleading guilty, Mone also admitted driving the getaway car in an armed robbery of a Citizens Bank in Somersworth, N.H., on Aug. 21. More than $3,100 was taken in that robbery, according to the U.S. attorney’s office.

Phillip Gage, who was arrested on Oct. 31, had a role in all five robberies, according to the U.S. attorney’s office. Barry told investigators he was paid $2,000 for the Eliot robbery and $200 for the Sanford one, according to court documents.

All the defendants are being held without bail.

Barry and Mone each face up to 25 years in federal prison and fines of up to $250,000. They also could be ordered to pay restitution to the bank they admitted robbing.