she never walked..? Since Anna went on a horse.., question is kind of vague
Anyway, If you count riding a horse to school as walking then it would be 30 miles in total since she went 5 miles with Nancy
If you don't count the horse riding it would be 5 miles since she walked the remaining miles with Nancy to the store