are you a freshman? Many top schools don’t even look at 9th grade.
You might reconsider taking again in Summer - not for the top grade - but to ensure you don’t fall behind in math because if you struggle early, you’re going to continue to struggle.
I don’t know what a “top” school is - but there’s no college in the country off your radar because you got a B. I would focus on ensuring you understand math - and being a solid overall student and member of the community - and not worry about what college you may or may not get into.
Good luck.