title: Logically sorting integers data
body: <p>I have following patterns of list available to play with.</p>
  
  <pre><code>Values : 
  20,
  25,
  30,
  35,
  40,
  45,
  50,
  55,
  60,
  70,
  75,
  80,
  90,
  100,
  120
  </code></pre>
  
  <p>Next I have another set of values like these:</p>
  
  <pre><code>200,225,300,50,45,75, 15, 72
  </code></pre>
  
  <p>Now for the value <code>200</code>, I want the algorithm that to fetch possible values that might result it's sum in to a </p>
  
  <pre><code>LIST [100+100], [100+50+50], [50+50+50+50], [120+80]..
  </code></pre>
  
  <p>Similarly for <code>225</code>:</p>
  
  <pre><code>[25+120+80], [25+100+100], [100+45+80]..
  </code></pre>
  
  <p>and put it on another list.</p>
  
  <p>exceptionally for <code>15</code>,</p>
  
  <p>it can fetch <code>[20]</code></p>
  
  <p>for <code>72</code> it can fetch [70], [75]</p>
  
  <p>Can any body help me to derive this logic?</p>