Thunno, \$ 7\log_{256}(96)\approx \$ 5.76 bytes
g2%k1-S Port of Kevin Cruijssen's MathGolf answer.
Thunno, \$ 9\log_{256}(96)\approx \$ 7.41 bytes
D2%s1-z*S Port of Jonathan Allan's Jelly answer.
ExplanationExplanations
g2%k1-S # Implicit input g k # Filter for those which are: 2% # Odd 1- # Subtract one from each S # Sum D2%s1-z*S # Implicit input D2% # Duplicate and mod by 2 s1- # Swap and subtract one z* # Multiply S # Sum