ROCKLAND, Maine — An affidavit filed Friday in Rockland District Court offered more details into the arrest of three people arrested Wednesday in connection to the sale of heroin and cocaine in the midcoast area.

Two of the three defendants remained at the Knox County Jail in Rockland Friday afternoon while the third was released on bail the night of the arrest.

Judge Susan Sparaco set bail at $25,000 cash for Stafford Goodman, also known as Smurf. Goodman, 27, of Biddeford, is charged with two counts of Class A trafficking in drugs. The charge was elevated to a Class A offense because he had a prior felony drug conviction and is punishable by up to 30 years in prison.

Assistant District Attorney Jeff Baroody had requested the $25,000 cash bail, pointing out that Goodman had only been released from jail in May after serving 27 months on a drug trafficking conviction. Goodman also had three prior bail violations in Maine and a failure to appear conviction in Virginia in 2006.

Goodman is a major flight risk, Baroody said.

The judge set bail at $1,000 for Alicia Santamore, 30, of Thomaston for two Class B counts of trafficking in drugs. Sparaco also set bail at $500 for Santamore on a request by the prosecution to revoke her probation. The revocation request stemmed from Santamore being out on bail on separate charges of forgery, stealing drugs and acquiring drugs by deception, the prosecutor explained.

A third defendant — Lauryn Smith, 20, of Biddeford — was released on $10,000 unsecured bail Wednesday night. She is charged with Class B trafficking in heroin and cocaine.

According to the affidavit filed in Rockland District Court by the Maine Drug Enforcement Agency, officers went to Santamore’s Water Street residence in Thomaston Wednesday morning as part of their investigation into the three allegedly dealing heroin and cocaine from the residence.

The three were in the residence and officers interviewed each of them.

Goodman admitted being a heroin user and while in handcuffs, officers noticed he was reaching his hands down the front of his pants, according to the affidavit. The officers checked and found a bag containing heroin and cocaine.

He then admitted to officers that he had been in Thomaston for the past couple of weeks solely to deal heroin and cocaine, according to the affidavit.

Santamore described herself as a “middler,” meaning she would take the orders for drugs and then provide them to the customers and collect the money, according to the affidavit. She said Goodman did not want to be seen by people coming to the residence, according to the police report.

Santamore said she had been using up to 1.5 grams of heroin and 2 to 3 grams of cocaine each day at a cost of nearly $500 daily. The Thomaston woman said she had known Goodman before he had gone to prison and connected with him again after he was released four months ago.

Smith told officers that she was a heroin user and had been driving Goodman to Thomaston, knowing that he was carrying the drugs. She said she got paid gas money and heroin for driving Goodman, according to the affidavit.

Seized during the search were 21 grams of heroin and 26 grams of cocaine, as well as other items indicative of drug trafficking, according to an MDEA news release issued Wednesday night. The approximate street value of the seized drugs is $10,000, according to the MDEA.

More arrests are expected, according to the drug agency.

Agents from the MDEA Mid Coast Drug Task Force, along with officers from the Maine State Police, the Thomaston Police Department, the Knox County Sheriff’s Office and the Rockland Police Department are conducting the investigation.