If you can't afford to go to school in high school. There will be subsidies for poor students in the school, and you can apply. There are also sponsorships from caring people in society.
If there is no money to go to college. Universities can apply for loans. Pay it back when you graduate from college and find a job. You can also go out to work to earn money when you are in college. Many college students will go to work when they are in college. Rich children are used for exercise. Children without money are for making money.
No matter whether you are in high school or college, you can consult your own teacher if you have no money to go to school. The teacher will give you reasonable advice. After all, you are not the only one who has no money to go to school. There's always a way.