I have two sets of items. Every item has a score. I'm finding the sum of the scores of the items of the intersection of both sets.
What would the best way to notate this be?
An example:
A = {a, b, c, d}
B = {c, d, e}
The scores are:
a -> 9
b -> 8
c -> 7
d -> 6
e -> 5
The result is the sum of the values of c and d, 7 + 6 = 13