I would like to get a sum from an array of arrays, but so far I have not found any solution.
The arrays look like this, and I would like to get the sum of all array values [2]

So with this array I should get the sum value of 13317 + 4719. I tried using $sum but I don't know how to point to the index 2 when it's inside of another array - $median_sale_prices.2 doesn't work in this case.