Re-take a class to erase a B during summer school

I’m not expert in UC admissions but wouldn’t a class taken the summer before 10th grade count in the GPA?

Regardless i would not retake a B.