# 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

**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.

## Recommended Posts:

- Puzzle 22 | (Maximum Chocolates)
- Number of chocolates left after k iterations
- Minimum and maximum number of N chocolates after distribution among K students
- Maximum profit after buying and selling the stocks
- Maximum profit by buying and selling a share at most twice
- Find Selling Price from given Profit Percentage and Cost
- Maximum profit by buying and selling a share at most k times
- Find cost price from given selling price and profit or loss percentage
- Puzzle 51| Cheryl’s Birthday Puzzle and Solution
- Puzzle 34 | (Prisoner and Policeman Puzzle)
- Puzzle 15 | (Camel and Banana Puzzle)
- Puzzle 81 | 100 people in a circle with gun puzzle
- Puzzle | 3 Priests and 3 devils Puzzle
- Puzzle 85 | Chain Link Puzzle
- Puzzle 33 | ( Rs 500 Note Puzzle )

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.