If in each number, the digits are arranged in ascending order, what will be the sum of the middle digits of each of the numbers?