Puzzle | Selling Chocolates

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.

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

Answer: 210


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.

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.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.