<p>You are given two 2D integer arrays, <code>items1</code> and <code>items2</code>, representing two sets of items. Each array <code>items</code> has the following properties:</p>
<ul>
<li><code>items[i] = [value<sub>i</sub>, weight<sub>i</sub>]</code> where <code>value<sub>i</sub></code> represents the <strong>value</strong> and <code>weight<sub>i</sub></code> represents the <strong>weight </strong>of the <code>i<sup>th</sup></code> item.</li>
<li>The value of each item in <code>items</code> is <strong>unique</strong>.</li>
</ul>
<p>Return <em>a 2D integer array</em><code>ret</code><em>where</em><code>ret[i] = [value<sub>i</sub>, weight<sub>i</sub>]</code><em>,</em><em>with</em><code>weight<sub>i</sub></code><em>being the <strong>sum of weights</strong> of all items with value</em><code>value<sub>i</sub></code>.</p>
<p><strong>Note:</strong><code>ret</code> should be returned in <strong>ascending</strong> order by value.</p>