CHEYENNE, Wyo. (AP) — A former sixth-grade teacher in Cheyenne who pleaded no contest to charges she had sex with a 13-year-old boy has been sentenced to eight to 12 years in prison

Anna Andersen, who taught at Freedom Elementary, was sentenced Monday. She previously pleaded no contest to second- and third-degree sexual abuse of a minor.

Andersen was arrested in March 2014.

Prosecutors say she and the boy had an ongoing relationship from 2012 to 2014 and a sexual relationship for two years. Prosecutors say the boy