The assignment I'm working on specifies to write a function called `sum_pairs` which accepts a list and a number and returns the first pair of numbers that sum to the number passed.

This is the desires result:

```
sum_pairs([4,2,10,5,1], 6) # [4,2]

```

The only way I could think of completing this is using the random module:

```
def sum_pairs(lst, num):
    rand_num_one = choice(lst)
    rand_num_two = choice(lst)
    if rand_num_one + rand_num_two == num:
        x = [rand_num_one, rand_num_two]
        return x

```

However, I know there's another way to do this without having to use the random module. I just can't put my finger on it. Any insight would be greatly appreciated.