A boy and a girl have some candies. If the girl gives one candy to the boy, he will have double the amount of candies that the girl does but if the boy gives the girl a candy, they will have the same amount. How many candies does the girl have and how many does the boy have? Hint: The boy and the girl don't have the same amount.

Quizzes, Brainteasers & Riddles
Share
0 2

The girl has 5 and the boy has 7.

x : girl's amount of candies
y : boy's

{ y+1 = (x-1) * 2
{ y-1 = x+1

{ y = 2x - 3
{ y = x + 2

{ (2x - 3) - (x + 2) = 0
{ y = x + 2

{ x - 5 = 0
{ y = x + 2

{ x = 5
{ y = 7

The girl has 5 candies, and the boy has 7.

Please   login   or signup   to leave a comment.