Here is the not so simple answer:
“Unfortunately, there is no one answer to these questions because every higher education institution does things differently, but in many cases, colleges will employ their own weighting systems to your grades.”
https://insights.collegeconfidential.com/do-colleges-weight-gpa