Java (JDK 10), 115 bytes
s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(278-s.charAt(0))/3080d*(s.endsWith("g")?.75:1)
Credits
- Port of TFeld's Python 2 answer.
- -1 byte thanks to Kevin Cruijssen.
s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(278-s.charAt(0))/3080d*(s.endsWith("g")?.75:1)