while some still ended up dropping out , they would sometimes come to visit her in later years , to thank her for teaching them how to read and write and perform the basic math necessary to figure out their purchases at the store .