Two marble sellers A and B plan to play a marble game. Initially they have the same no. of marbles
in the stock, before starting the game. Now the game starts.
A wins 20 marbles in the first run and loses (2/3)rd of the stock in the play-off. What was the no. of marbles
with each of them, before they started the game ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

a = (x + 20) * (1/3)
b = (x - 20) + (x + 20) * (2/3)

(3 * a) - 20 = x
((3 * b) + 20) / 5 = x

(3 * a) - 20 = ((3 * b) + 20) / 5
b = ((((3 * a) - 20) * 5) - 20) / 3
b = (5 * a) - 40

x has to be at least 20 (a has to be at least 14), or A couldn't have been able to win 20 from B in the first round.

Multiple solutions :

if x = 22 :
a = 14
b = 30

if x = 25 :
a = 15
b = 35


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
So, for every value of a >= 14, there's a solution :

a = a
b = (5 * a) - 40
x = (3 * a) - 20
>Initially they have the same no. of marbles in the stock, before starting the game.

>What was the no. of marbles with each of them, before they started the game ?


(a+20) / 3


The Marble sellers A and B both started the game with 21 marbles each.
Discover the Answer to Productive IT

Discover app within WatchGuard's Wi-Fi Cloud helps you optimize W-Fi user experience with the most complete set of visibility, troubleshooting, and network health features. Quickly pinpointing network problems will lead to more happy users and most importantly, productive IT.

21 won't work, as (a+20) / 3 is not an integer value then ! The minimum correct value is 22 as i showed in my first post.

Not thinking straight, in fact (Infinity08) I missed the point of your answer, I would not have posted here at all, if I had read yours properly.

Should have been more clear :

x : number of marbles each start with
a : number of marbles A ends with
b : number of marbles B ends with
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Puzzles / Riddles

From novice to tech pro — start learning today.