I need help, I want to sum array value tr_snp base on tr_part which has same value, then become new array which show tr_part (no duplicate) &the sum) [closed]

[4] => Array
        (
            [from] => 2022-03-17 01:15
            [to] => 2022-03-17 02:15
            [tr_part] => Array
                (
                    [0] => 60-41307-50000
                    [1] => 60-41307-50000
                    [2] => 60-41109-50001
                    [3] => 60-41109-50001
                    [4] => 60-41109-50001
                    [5] => 60-41109-50001
                    [6] => 60-41109-50001
                    [7] => 60-41109-50001
                    [8] => 60-41109-50001
                    [9] => 60-41109-50001
                    [10] => 60-41109-50005
                    [11] => 60-41109-50003
                    [12] => 60-41109-50003
                    [13] => 60-41109-50003
                    [14] => 60-41109-50003
                )

            [tr_snp] => Array
                (
                    [0] => 5
                    [1] => 5
                    [2] => 10
                    [3] => 10
                    [4] => 10
                    [5] => 10
                    [6] => 10
                    [7] => 10
                    [8] => 10
                    [9] => 10
                    [10] => 10
                    [11] => 10
                    [12] => 10
                    [13] => 10
                    [14] => 10
                )

        )