Hey so i basically have a problem like this:

i have a numpy array which contains a matrix of values, for example:

```
Data = np.array([
    [3, 0, 1, 5],
    [0, 0, 0, 7],
    [0, 3, 0, 0],
    [0, 0, 0, 6],
    [5, 1, 0, 0]])

```

Using another array i want to extract the specific values and sum them together, this is a bit hard to explain so ill just show an example:

```
values = np.array([3,1,3,4,2])

```

so this means we want the first 3 values of the first row, first value of the second row, first 3 values of the 3rd row, first 4 values of the 4th row and first 2 values of the the last row, so we only want this data:

```
final_data = np.array([
    [3, 0, 1],
    [0],
    [0, 3, 0],
    [0, 0, 0, 6],
    [5, 1]])

```

then we want to get the sum amount of those values, in this case the sum value will be 19.

Is there any easy way to do this? also, the data isn't always the same size so i cant have any fixed variables.