UNITY, Maine — The Maine Drug Enforcement Agency arrested two Unity men on Thursday in connection with allegedly selling pot and heroin, MDEA Cmdr. Scott Pelletier said in a news release.

Robert Hubbard, 51, was charged with trafficking in marijuana and possession of hydromorphone, and Spencer McGarey, 43, was charged with trafficking in marijuana and trafficking in heroin, Pelletier said.

All of the charges are Class C felonies.

Over the past two months, agents from the Mid-Coast District Task Force conducted an investigation and made undercover purchases of marijuana from Hubbard and heroin from McGarey, Pelletier said.

Story continues below advertisement.

Hubbard is registered with the state as a certified caregiver under the Maine Medical Use Marijuana Program, the MDEA commander said, and the investigation indicated that Hubbard was selling marijuana he grew in his Unity residence to nonqualified patients.

At about 10 a.m. Thursday, MDEA agents executed a search warrant at Hubbard’s and McGarey’s home. As a result, 94 marijuana plants were seized, none of which had a legible tag affixed to them bearing the qualified patient’s name as required by the state, Pelletier said.

He added that more than five pounds of processed marijuana, numerous prescription pills — including hydromorphone — were seized, and agents confiscated three firearms found in close proximity to the processed marijuana.

Neither Hubbard nor McGarey possess prescriptions for medical marijuana, and no qualified patients live in the residence, he noted.

Hubbard and McGarey were taken to Waldo County Jail, where bail will be set.

The investigation is continuing, Pelletier said, adding that MDEA is coordinating its efforts with representatives of the state medical marijuana program.

The Waldo County Sheriff’s Office and Maine State Police assisted in the investigation. The MDEA Mid-Coast District Task Force serves the communities of Knox, Waldo, Lincoln and Sagadahoc counties.