BMAD Posted March 10, 2014 Report Share Posted March 10, 2014 At the classroom costume party the average age of the (b) boys is g and the average age of the (g) girls is b. If the average age of everyone, including the 42-year-old teacher, is b+g, what is the value of b+g? 1 Quote Link to comment Share on other sites More sharing options...
0 harey Posted March 10, 2014 Report Share Posted March 10, 2014 (edited) 1) sum of ages=boys+girls+teacher=b*g+g*b+42=2*b*g+42 2) sum of ages=average_age*number_of_persons=(b+g)*(b+g+1) 1=2: 2*b*g+42=(b+g)*(b+g+1) I fed it into Wolfram Alpha and got no positive integer (number of persons) solution. A small program to be sure: for b in range(1,99): for g in range(1,99): sum1=2*b*g+42 sum2=(b+g)*(b+g+1) if(sum1==sum2): print(b,g,sum1) (b,g)=(3,5) => b+g=8 I would be interested if someone finds the solution with Wolfram Alpha. Sorry, unable to hide. Edited March 10, 2014 by bonanova spoiler Quote Link to comment Share on other sites More sharing options...
0 BMAD Posted March 10, 2014 Author Report Share Posted March 10, 2014 i found two positive integer answers Quote Link to comment Share on other sites More sharing options...
0 harey Posted March 10, 2014 Report Share Posted March 10, 2014 (edited) Yes, I should have started at 0. (a,b)=(0,6) -> (a+b)=6 Edited March 11, 2014 by bonanova spoiler Quote Link to comment Share on other sites More sharing options...
Question
BMAD
At the classroom costume party the average age of the (b) boys is g and the average age of the (g) girls is b. If the average age of everyone, including the 42-year-old teacher, is b+g, what is the value
of b+g?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.