In an apartment complex, the number of people aged years and above is and there are at most people whose ages are below years. The average age of all the people in the apartment complex is years. What is the largest possible average age, in years, of the people whose ages are below years?
In an apartment complex, the number of people aged years and above is and there are at most people whose ages are below years. The average age of all the people in the apartment complex is years. What is the largest possible average age, in years, of the people whose ages are below years?
Solution
We have an apartment complex with two age groups:
30 people aged 51 years and above
At most 39 people aged below 51 years
Overall average age is 38 years
We need to find the largest possible average age of people below 51 years.
Let's define our variables:
A₁ = average age of people aged 51 and above
A₂ = average age of people aged below 51 years (this is what we want to maximize)
N₂ = number of people aged below 51 years
Key insight: We'll use the weighted average formula since we have two groups with different sizes.
The overall average of 38 years comes from combining both groups:
Substituting our values:
Why this formula works: Each group contributes to the total based on both their average age and how many people are in that group.
What this tells us: The sum of weighted deviations from 38 must equal 1140.
From our equation:
To maximize A₂, we need to:
Minimize A₁: Since people in this group are "51 years and above," the minimum possible value is A₁ = 51
Maximize N₂: We're told "at most 39 people" below 51, so maximum N₂ = 39
Why this works: Making A₁ smaller and N₂ larger gives us more "room" to increase A₂.
Substituting A₁ = 51 and N₂ = 39:
Therefore, the largest possible average age of people below 51 years is 28 years.
When maximizing one variable in a weighted average problem, we look for ways to:
Minimize other variables that compete for the same "total"
Maximize the weight (count) of the group we're trying to optimize
This approach works because weighted averages create trade-offs between different groups.