I know that must be hard.
first of all the money thing.... I’m puzzled. Why would she agree to Secret Santa AND THEN have no money? I would think she’d save up and not spend her money on other things. Forget about it though, does a Secret Santa need to coast a friendship? As for your share, get her something even though she bailed out. Maybe a book or keychain, this will help because it’ll make her feel like you WANT her to feel good even though she couldn’t. The math class thing... I think she’s jealous of how smart you are. I also think she might struggle with math a little bit. Sometimes during class, (When I’m aloud to.) I chat to my sister and sometimes I say “Hey, I need to pay attention now.” and sometimes she does the same. Just accept that and let her focus so she can get better at math. Maybe private chat the teacher and ask to talk to her privately during a break/recess and let him/her know. S/he is here for you if you need help with anything. If you can, maybe you could also talk to a school counselor and explain your situation. You may also want to find some other friends to hang out for a little bit. Take a break from that one friend.
“Friendships have bumps, and obstacles in the way, but you have to make it over the bumps!” -Me (lol!)
If you ever need more help you can come here! We’re here to help!