PROVIDENCE, R.I. (AP) — A Missouri man has been sentenced to 14 years in prison for taking a developmentally delayed girl from Massachusetts to a motel in Rhode Island, where he sold her for sex.

Stephen Ardrey, of Springfield, Missouri, was sentenced in federal court in Rhode Island on Tuesday and apologized to the 17-year-old girl and her family. He previously pleaded guilty to trafficking a minor and transporting a minor to engage in sex.

The teen's mother says her daughter suffers from nightmares and couldn't attend the sentencing because of anxiety.

Prosecutors say Ardrey met the girl online and corresponded with her before taking her in September from a library in Medfield, Massachusetts, to a motel in West Greenwich, Rhode Island. They say he engaged in sexual activity with her then sold her.