Used different method wanted to see if it works or just lucky for this problem


Still got 17, but my operation was different. I created the equations 19=3x+2 for scenario 1, and
19=5x+2 for scenario 2. I used 19 because it is the max number that is less than 20.

After solving for x for both equation I came up with 5.blah blah blah for (1) and 3.blah blah blah for (2). Didn’t really care about anything after the decimal because baskets cannot be in decimals. Plug the nearest integer back in and boom, I got 17 for both. Was this the right thinking or is this is a lucky moment in my quant journey? Thank you!

It’s a little smarter than pure luck but also it’s luck - the answer just happened to be close to what your equations produced, so your trial and error felt smart.

Since there are fewer than 20 eggs, we can brute force the problem pretty quickly as well but I guess that’s neither here nor there.