They're all in Y8.
When told to work in teams, whether in class or for homework, dd always ends up in the same group of 3. If she tries to team up with another group, 2 of the 3 welcome her but the 3rd always rejects her, so she does not get included. It's always "you're friends with X and Y, so you should be working with them."
But when she works with X and Y they don't pull their weight. Dd isn't too bothered that they get credit for her hard work since the teachers can see very clearly who is really putting the effort in, and they let her know that they are aware of it. What upsets dd is that she finds it hugely stressful not being able to rely on her team-mates. Worse is that they are her friends (though the trio-demon is beginning to rear its ugly head) and she can't see a way of dealing with the situation that won't break up the friendship.
Any suggestions how she could deal with this?