There is no legal way to get out of your home.
Another way for you/ but I strongly do not recommend it/ is :leave the school,find a job and ask the court to be emancipated.
Or... try to convince your mother of that it will be better for her and you if you are allowed to move to your grandmother's home.

