# A Problem of Candy Bars

Recently I attended a birthday party. All the

children in the party were having candy bars. All the children got three candy bars each except the child sitting in the end. She got only two candy bars. If only each child had been given two candy bars there would have been eight candy bars remaining. How many candy bars were there altogether to begin with?

5 Comments

Okay, that’s a good start however i’m going to consider that a great deal more. Will let you know just what more i have found.

3*x+2*1=2*(x+1)+8=total candy bars //x is the count of child less by 1

x=8

candy bar=26

Let x, y be the no. of candy bars and no. of children respectively.

According to first statement, y=3(x-1) +2*1

According to second statement, y=2*x + 8

Combining both statements, we, get x = 9. Hence, no. of candies, y = 26.

hey mohit can u tell me how u did this

26 candy bars