I am trying to compute the sum of specific elements of a tuple, but cannot get it to compile.
Here is what the function I want to write would look like: