Show that from a group of seven people whose (integer) ages add up to 332 one can select three people with the total age at least 142. I need help with this problem, and I was thinking in this way:
$$ x_{1} + x_{2} + x_{3} + x_{4} + x_{5} + x_{6} + x_{7} = 332 $$
and I need to find three of these which sum is at least 142.
But I don't know what next. 
Any help would be appreciated

I find the complexity of the methods shown here to be strange. There is a much simpler solution. $332$ years divided among $7$ people works out to be a little more than $47$ years per person. Specifically, because $7 \cdot 47 = 329$, there are three extra years. So the most even distribution of ages is:
$$47,47,47,47,48,48,48.$$
Obviously, there is a group of three whose ages add up to at least $142$ (in fact, it is $144$). Further note that any time you take a year from someone, you must give it to someone else to keep the sum constant. Taking a year from an older person just redistributes the years and taking a year from a younger person does not help in trying to get a lower sum.
To elaborate on this, you can do one of four redistributions at the beginning: from a $47$ to a $47$, from a $47$ to a $48$, from a $48$ to a $47$, and from a $48$ to a $48$. After these, the outcomes (when sorted again) will be:
$$46,47,47,48,48,48,48$$
$$46,47,47,47,48,48,49$$
$$47,47,47,47,48,48,48$$
$$47,47,47,47,47,48,49$$
As you can see, in every case, the three greatest ages have a sum that is at least $3 \cdot 48 = 144$. Now note that the next time you take a year from someone and give it to someone else, if the first person is older, then you will get one of the five configurations seen already. The only way to get a configuration not seen before is to take a year from a younger person, and this will never lower the sum of the ages of the three oldest people.
To look at it another way, if every person was $47$ years old, then every triple of persons has an age sum of $141$. The instant you give anyone an extra year, there is a triple with an age sum of $142$. Adding two more extra years doesn't help.
