What I am struggling with is looping through the arrays, finding groupings with the same first index (the 3 integer ids), looping through that then finding any duplicates in the second array with the same 4 integer id, then adding the third index floats then spitting out a final array with the duplicates removed and their values summed.