# In an apartment complex, the number of people aged 51 years

Averages
In an apartment complex, the number of people aged 51 years and above is 30 and there are at most 39 people whose ages are below 51 years. The average age of all the people in the apartment complex is 38 years. What is the largest possible average age, in years, of the people whose ages are below 51 years?

- 27
- 28
- 26
- 25

### Answer

Let the average age of people aged 51 years and above be x years.

Let the average age of people aged below 51 years be y years.

Let the number of people aged below 51 years be N.

Given that, the average age of all the people in the apartment complex is 38 years. Therefore,

(x × 30) + (y × N) = 38 × (30 + N)

The maximum value of y occurs when x is minimum.

So, x = 51

Substituting the value of x,

390 = N × (38 - y)

Again, when y is maximum, N is also maximum i.e. 39

Therefore, maximum value of y = 28.

**The correct option is B.**