class Solution:

    def arrayPairSum(self, nums: List[int]) ->int:
        sum_of_nums = 0
        nums.sort()
        for number in range(0, len(nums), 2):
            sum_of_nums += nums[number]
        return sum_of_nums

5ec8ace86db053b5177155f4828b0b30120d5fdd
<mask token>

class Solution:
    <mask token>

class Solution:

    def arrayPairSum(self, nums: List[int]) ->int:
        sum_of_nums = 0
        nums.sort()
        for number in range(0, len(nums), 2):
            sum_of_nums += nums[number]
        return sum_of_nums
