class Solution {

public:

#include <array>

#include <algorithm>

vector<int> twoSum(vector<int> &numbers, int target) {

int size = numbers.size();

vector<int> output;

```
for (int i = 0; i < size - 1; i++){
for (int j = i + 1 ; j < size; j++){
int sum = numbers[i] + numbers[j];
if ((sum = target) && (numbers[i] <= numbers[j])){
output[0] = numbers[i];
output[1] = numbers[j];
return output;
}
else if((sum = target) && (numbers[i] >= numbers[j])){
output[0] = numbers[j];
output[1] = numbers[i];
return output;
}
}
}
}
```

};