One of them, a 16-year-old, was released to the Department of Children and Family Services, according to the agency. The other girl, 17, was released to probation officers due to an arrest warrant from San Bernardino County, officials said.

Officers arrested 12 women on suspicion of loitering for the purposes of prostitution and two others on suspicion of solicitation of prostitution after they offered sex in exchange for money to undercover detectives.

Authorities later determined seven of them to be victims of human trafficking. The remaining women were booked at the Century Regional Detention Facility, according to the Sheriff’s Department.

Deputies arrested 20 men who solicited undercover officers for sex acts, the agency said. They were taken to the detention facility as well.

Another woman, 20-year-old Rajene Robinson of Santa Clarita, was arrested on suspicion of pandering after she tried to recruit an undercover officer to become a commercial sex worker. Officers also arrested a 23-year-old man from Riverside who was with her. He allegedly carried a loaded firearm in a car and supervised in prostitution.

Sheriff’s deputies worked with the FBI, the L.A. County District Attorney’s Office and other agencies in the case.