LOS BANOS, Calif. (KFSN) -- A North Valley teacher is in jail accused of having sexual relationships with two students. And detectives say his girlfriend also molested one of the victims.Los Banos Police arrested 40-year-old Gary Bettencourt and 22-year-old Devyn Egan at their home in Turlock this morning. Action news has confirmed Egan is also one of Bettencourt's former students.Police said this investigation involved reviewing thousands of messages on social media plus processing cell phones, computers, and DNA evidence. And they haven't ruled out the possibility of more alleged victims.Bettencourt was a trusted teacher at Los Banos High from 2002 to 2010 and has worked at Pacheco High since then. But police said he violated that trust by having sexual relationships with two female students. "It's very disturbing. You hope that it never happens during your career, and when it does, it's like a punch in the stomach and it's a betrayal of the profession," said Dr. Steve Tietjen, superintendent.The allegations first surfaced in September when one victim confided in a school employee. She reported having sexual encounters her 40-year-old English and drama teacher, and his 22-year-old girlfriend, Egan. The victim said it started early last year and ended when she graduated in June as a 17-year-old. "Throughout the investigation, we received several pieces of evidence which included social media. We recovered information from computers so we were able to tie some information to our second victim," said Acting Chief Ray Reyna, Los Banos Police Department.That second victim is now 27-years-old, but she described a sexual relationship with Bettencourt from the time she was 15 to 17. Prosecutors filed charges Monday, and police arrested both suspects Wednesday morning. "Their charges involve unlawful sexual acts with a minor, lewd contact, and several other charges related to that type of conduct," said Reyna.Administrators said they provide training every year to staff and students to prevent situations like this, and they're now offering counseling to those who were in Bettencourt's classes. "We all feel betrayed here, and I just want to try to build the trust back into the system we had before this occurred," said Tietjen.Bettencourt has been on paid administrative leave since September. Now that charges have been filed, he'll be placed on unpaid leave and could lose his teaching credentials.Both suspects are being held at the Merced County jail.