GREENSBURG, Pa.—Two female former employees at a county prison in western Pennsylvania have been charged with having sex with inmates.

Forty-two-year-old Melissa Ann Boggs, of Latrobe, was a part-time guard and 38-year-old Belinda Sapanara, of Donegal, was a nurse practitioner, when they each allegedly had sex with different male inmates in separate incidents in June.

County detectives say Boggs exchanged letters with one inmate and had sex with him in his cell. Sapanara is charged with having sex in her office with another inmate to whom detectives say she gave $750 and also paid $2,000 toward his fines and court costs.

Investigators say the sex was consensual, but it's considered assault because incarcerated people can't legally consent to sex with such workers.

Defense attorneys for the women, who were arrested Tuesday, did not immediately return calls.