A teen who escaped from a juvenile detention facility in western Maryland was apprehended Wednesday in Montgomery County.

Sixteen-year-old Edwin Cortez got away from the Green Ridge Youth Center in Flintstone on Sunday night.

He was found at his girlfriend’s house in Gaithersburg Wednesday afternoon, Maryland State Police spokesman Greg Shipley said. Cortez’s girlfriend lives in the same neighborhood as his parents, so police knew he had associates in that area, Shipley said.