Sophie manages to break free from Anadil's grip by using the power of her own love for Agatha.
How did Sophie escape ?
As Anadil strangles her, Sophie recalls all the moments she and Agatha shared, from their childhood friendship to their unwavering bond throughout their time at the School for Good and Evil. This surge of love for Agatha empowers Sophie, and she manages to push Anadil away and break free from her grasp.
This moment highlights the strength of Sophie's love for Agatha and its ability to overcome even the most dangerous situations. It also demonstrates the importance of love and friendship in the face of adversity.
Note : This is from The School for Good and Evil Library