Do grades freshmen and sophomore year affect my chances into getting in a top school

Lol. That’s my post.

For the OP. All grades matter but if you have an upward trend then 9th grade can get discounted. Depends on the school. I can tell you from experience Michigan will look lightly at 9th grade if there is a upward logical trend. Let’s say you get a C in Geometry but then a B in Algebra 2 and an A in Calc. That shows you them your getting it. But of course higher grades are better but not always needed. Look at the common data sets for the schools you’re applying to and look at section C. Then ask your school how many from your school get applied vs accepted and with what GPA /scores and this will give you a clue.