Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I need to figure out some averages for some javascript I'm writing. The data I have is:

  • I know the average of $a$, $b$ and $c$.
  • I know the value of $c$.
  • I do not know the values of $a$ and $b$.

What I need to know is the average of $a$ and $b$. It must be possible, but I can't figure it out.

share|improve this question
add comment

2 Answers

Let $$\frac{a+b+c}{3}=k$$ but k is a known value.

Then $$a+b+c=3k$$. This implies $$a+b=3k-c. \cdot\cdot\cdot (1)$$

Now, suppose the average of a and b is $m$ an unknown value.

Then $$\frac{a+b}{2}=m$$Thus, $$a+b=2m$$. Therefore from $(1)$ $$3k-c=2m$$. From this $$m=\frac{3k-c}{2}$$ At last you can put the known values of $k$ and $c$ to get your result.

share|improve this answer
    
Clear and simple. –  Emmad Kareem Oct 29 '11 at 16:25
add comment

Hint: We have $$ 3\cdot\frac{a+b+c}{3}-c=a+b. $$

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.