For each number, you need to find if its complement exists. If the target is and you see , you need . Instead of searching the entire list for , store numbers you've seen in a dictionary.
The dictionary maps number to index. When you see a number, check if target - number is in the dictionary. If yes, you found the pair. This turns brute force into time and uses space for the hash map.