Two 13-year-olds — including one already on probation for stealing a car — were arrested at the end of a pursuit of a vehicle that had been taken at gunpoint in San Bernardino, authorities said.

Someone with a gun approached a man in his 60s about 11 p.m. on Oct. 9 in the 1400 block of North Pepper Tree Lane and took his car, said Sgt. Araceli Mata, a San Bernardino Police Department spokeswoman.

Around noon the next day, sheriff’s deputies received an alert that license plate readers had detected the stolen Kia Optima, a sheriff’s news release said. Deputies tracked the Optima before finding it and chasing it 13 miles through San Bernardino.

The release said the driver committed “numerous felony violations” before stopping. There were three minors in the car, and two were arrested, including one who was on felony probation for vehicle theft.

The release also credited the license plate readers for helping deputies recover the man’s car.