Two men from Hancock County have been charged following an investigation into the sale of heroin in the Southwest Harbor area, The Maine Drug Enforcement Agency said.

The MDEA was assisted in the investigation by the Southwest Harbor Police Department, Hancock County Sheriff’s Office and Maine State Police, drug agents said in a news release Monday afternoon.

The investigation, coordinated by the MDEA’s office in Ellsworth, resulted in a traffic stop late Friday night in Southwest Harbor. The release said a state police dog helped officers recover 40 grams of heroin with a street value of $12,000.

Police arrested Leon Jacobs, 43, of Southwest Harbor and Jesse Couto, 29, of Trenton. The two were charged with Class B trafficking in schedule W drugs (heroin) and transported to the Hancock County Jail.