Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Puzzle | Selling Chocolates

  • Difficulty Level : Basic
  • Last Updated : 22 Aug, 2018

Ram and Shyam were selling chocolates. Ram was selling at the rate of 2 pieces/rupee and Shyam was selling at the rate of 3 pieces/rupee. Now both of them decided that they will mix their chocolates and sell them at the rate of 5 pieces for 2 rupees.
Now after selling whole chocolates, they found that the total collection is rupees 7 less than what they would get by selling them separately.

Note : Initially both have equal number of chocolates.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.  To complete your preparation from learning a language to DS Algo and many more,  please refer Complete Interview Preparation Course.

In case you wish to attend live classes with experts, please refer DSA Live Classes for Working Professionals and Competitive Programming Live for Students.

Q. Find how many chocolates each of them had initially?



Answer: 210

Explanation:

Let x be the number of chocolates each of them had initially. Total money earned when they sell chocolates separately: x/2 + x/3.
Total money earned if they sell in a combined manner: (2*x)/(5/2)
According to the problem: x/2 + x/3 =(2*x)/(5/2) + 7
Solving the above equation, we get the value of x = 210.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!