Bail was set at $5,000 cash Wednesday afternoon for a 26-year-old Massachusetts man on charges that he dealt cocaine and fentanyl in Rockland.

Joseph G. Rodriguez of Haverhill, Mass., was arrested June 8 by the Maine Drug Enforcement Agency. Rodriguez is charged with Class A aggravated trafficking in fentanyl and Class B trafficking in cocaine. The fentanyl charge was elevated to Class A because the amount exceeded six grams.

His arrest followed the April 27 arrest of Paul A. Mahonen Jr., 43, of Knox. Mahonen was charged with Class A trafficking in cocaine, Class A trafficking in fentanyl, Class A importation of drugs and Class D endangering the welfare of a child.

Mahonen's offenses are alleged to have occurred in Rockland, according to the court complaint. His cocaine charge was elevated to a Class A because he had a prior drug conviction in 2012. The fentanyl charge was elevated to Class A because the amount exceeded six grams.

According to an affidavit filed by MDEA in court, Rodriguez was Mahonen's supplier. MDEA reported it seized 72 grams of cocaine from Mahonen and more than nine grams of fentanyl.

Rodriguez sold cocaine to Mahonen for $1,900 an ounce (about 28 grams in an ounce) and $700 for 10 grams of fentanyl, according to the affidavit.