The GPA is calculated as an average of the grade values weighted by its credits.
If ci is the credit and Vi is the value, the equations is the following:
The values are:
Math:
c1 = 3
G1 = A -> V1 = 4.0
Biology:
c2 = 4
G2 = B- -> V2 = 2.7
Spanish:
c3 = 3
G3 = C+ -> V3 = 2.3
So: