In the end, you got a B. It’s fine. Life goes on.
Math builds - so most important is that you understand it before progressing.
How you do in HS, even where you go to college, in most cases - is going to be a small blip on the long journey of life.
And a B is - above average.
You’re fine.
Best of luck.