value1 = 0 and value2 = 0 with weight 0
value1 = 1 and value2 = 6 with weight 5
value1 = 2 and value2 = 4 with weight 4
value1 = 3 and value2 = 3 with weight 2
value1 = 5 and value2 = 2 with weight 4
value1 = 5 and value2 = 7 with weight 6
value1 = 8 and value2 = 5 with weight 6
この出力を新しい配列 (value1、value2、および weight の異なる配列) に保存して比較するにはどうすればよいですか?