# Gumball Problem

Three cents is the most Ms. Hernandez dominion accept to exhaust to get twain her twins the identical tingeed gumballs if there are singly tingeless and red gumballs. This is owing for the primitive gentleman she uses there is a 50% Ms. Hernandez can get a red gumball and a 50% hazard she can get a red one. For the cooperate and third she has the identical hazards. The chart adown shows all the likely combinations of gumballs Ms. Hernandez could accept gotten. PenniesColor 1st PennyRed 2nd PennyWhite 3rd Gentleman Red st PennyWhite 2nd PennyRed 3rd PennyWhite 2. The instant day Ms. Hernandez and her twins by another gumball channel succeeding a while three tinges, red, tingeless, and sky sky sky blue and anew her twins absence the identical tinge. The most Ms. Hernandez dominion accept to exhaust is 4 cents. This is owing she could get the following: PenniesColor 1stRed 2ndWhite 3rdBlue 4thWhite 3. Seven cents is the most Mr. Hodges dominion accept to exhaust to get his triplets the identical tinge gumballs at the identical three-tinge gumball channel as Ms. Hernandez. This is owing he could get the following: PenniesColors 1st gentlemanBlue 2nd gentlemanRed 3rd gentlemanWhite 4th gentlemanWhite 5th gentlemanBlue 6th gentleman Red 7th gentlemanBlue 4. The instant day Mr. Hodges byes a two-tinge (red and tingeless) gumball channel succeeding a while his triplets anew, they each absence the identical tinge. The most Mr. Hodges would accept to exhaust is 5 cents. This is owing he can get the following: PenniesColor 1st gentlemanRed 2nd gentlemanWhite 3rd gentlemanWhite 4th gentlemanRed 5th gentlemancolorless . The formula I root to clear-up these tenors is: [(# of tinges)(of kids)]- [(#of tinges)-1]= how plenteous specie they demand to exhaust. Ex of formula for scrutiny #1 is: [(2 tinges)(2 kids)]-[(2 tinges)-1]= 3 cents Ex of formula for scrutiny #2 is: [(3 tinges)(2 kids)]- [(3 tinges)-1]= 4 cents Ex of formula for scrutiny #3 is: [(3 tinges)(3kids)]-[(3 tinges)-1]= 7 cents Ex of formula for scrutiny #4 is: [(2 tinges)(3 kids)]-[(2 tinges)-1]= 5 centsI figured this formula out by letter out how kids and tinges in each tenor and then the utmost whole late succeeding I root each solution. Ex: Tenor 1: 2 kids, 2 tinges, max late: 4. I knew that two this demanded to be multigenous and this demanded to be subtracted so I did a imagine and bridle until I root the solution.