hi friends,

ı have a question is there anyone to help me?

ı have 2 list below; targetValueList and ValueList.

targetValueList <- c(100378,20887,14367,11977,10822,8888,7932,6899,6842,6121,5830,5295,5138,4461,2498,899,879,549,254,188,13)

ValueList<- c(-11,-149,-167,-188,-227,-254,-400,-672,-1641,-1864,-4461,-4637,-4843,-5830,-6121,-6844,-10820,-11977,-14367,-21082,-24195,-100367)

ı am trying to find which combination of negative numbers from my negative list sums up to any positive number from the first list .

for example (-100367 and -11)*-1 is equal to 100378

how can ı solve this problem.

ı got stuck here.