Would colleges prefer upward trend?

Okay so math and science have always been my weak areas.
9th grade
Earth Science - 66 (D)
Geometry - 72
10th grade
Biology honors - 76
Algebra 2 and Trig - 73
My junior and senior year grades are in the 80’s for both math and science.
Anyways, would colleges like to see this upward trend, or do I retake earth science online and get like a 95, and boost my GPA? (Won’t show an upward trend, instead fluctuating.) Or do I not retake it and let colleges see my effort and upward trend over my GPA?

Colleges prefer a solid academic performance all 4 years, but an upward trend is better than a downward trend. Take the classes that most interest you and you feel you do well in.