getPrincipleWeights Input getPrincipleWeights([ [7, 2, 35], [30, 6] ]); Output [ [7, 0.25], [30, 0.25], [2, 0.1875], [6, 0.1875], [35, 0.125] ];