I did not say it was easy, I said parts of it were easy and I gave a start point
this is exactly what i said.
Try looking at each scenario separately,
0 blue, 6 green
1 blue, 5 green
etc
Some are easy some will be hard.
Show us what you can do on your own.
Did guest show what he could do on his own?
OR did you just race in and give him an answer? (which may or may not be correct)
I should not sound too negative about it, if the question inspired you to practice or learn something then your effort is of value (to you)
Your answer only has cheat value to the asker however.