Sum cells inside repeating group from second item in list field

I have a list field, called action_values_values, which contains 2 values per cell.


I’ve created a repeating Group which takes always the second element of the list.


Now, my goal is to calculate the sum of all the cells within the repeating Group and store it in a custom state. Could you guide me on how to achieve this?

you are not using a repeating group for the second element of the list you are using a group

so you can simply reference the actual repeating group that has the two items and say rg each items second item sum