Next week, I'm beginning the 2nd semester of 9th grade in the country's leading Comp Sci High School. (the profile is actually Math-Comp Sci, but this HS focuses more on Comp Sci, whereas other ones focus more on math). What I did in grades 5th-8th (and that I should know almost perfectly) is from natural numbers (5th, arithmetic) all the way to linear equalities and inequalities, 2nd degree equations (8th grade) with a dash of plane and some 3D geometry. Judging by the results of my HS admission test, I should know these things pretty well, but it seems to me as if I don't have a good grasp (I'm getting rusty, or in fact never been that good). Now, in the 9th grade, it happened that I have the worst math teacher in the entire high school (other teachers complain about him, from the ones that teach Comp Sci to the geography ones, all the students complain about him). He just comes in class, writes the basic definitions of something, shows us no practical examples (well, not practical, but how to solve the exercises involving them) and he gives obscene amounts of homework (I checked with other HS math teachers).
So, basically, what I need is this: something that I can study on my own (so, a book with examples, lots of exercises in the entire difficulty spectrum and solutions would be great) to get a really firm grip on basic geometry (similar triangles, Pythagorean theorem, the really basic stuff), the algebra from 5th-8th (including the arithmetic parts, like properties of $a \vdots b$ then $a \vdots nb$) and then a good resource for the highlights of high school (so I can get a good grip of what I currently should be studying, but can't because of the poor teacher), plus the stuff from higher years (logarithms, complex numbers etc.). Why I'm asking this question? Because I decided I want to learn Real Analysis, and found that while I understood all the concepts, I couldn't handle the exercises and I had difficulties with the rather basic stuff (linear eqs. and so on).
Sorry if the location isn't quite right, but this seemed like the best place to ask this question.
Any good books, or resources, or stuff I should look into, or a list of things I should have a really good grip on before moving on to more advanced stuff. Any suggestion is appreciated.