First year of high school

I’ve been getting good grades the majority of my life so far, but this year is my first year of high school and it’s been a struggle and I was failing all my classes at one point at different times I don’t know how to solve the problem because I’m getting stressed over it. I feel dumb in a few of my classes because I have to ask friends for help and I feel they get annoyed when they say they don’t. Do you guys have any suggestions on what I can do?