How many chocolates Ekta got on her Birthday? and how many friends are there?

Ekta got chocolates to give her friends on her Birthday. If she gives 3 chocolates to each friend, one friend will get only 2 chocolates. Also, if she gives 2 chocolates to each friends, she will left with 15 chocolates.

How many chocolates Ekta got on her Birthday? and how many friends are there?

Answer

47 Chocolates and 16 Friends

Let's assume that there are total C chocolates and F friends.

According to first case, if she gives 3 chocolates to each friend, one friend will get only 2 chocolates.
3*(F - 1) + 2 = C

Similarly, if she gives 2 chocolates to each friends, she will left with 15 chocolates.
2*F + 15 = C

Solving above 2 equations, F = 16 and C = 47. Hence, Ekta got 47 chocolates and 16 friends

No comments:

Your Title

My Blog List