# Gumball Problem

Three cents is the most Ms. Hernandez force accept to consume to get twain her twins the selfselfidentical speciousnessed gumballs if there are singly speciousnessless and red gumballs. This is consequently for the primary penny 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 second and third she has the selfselfidentical hazards. The chart adown shows all the feasible combinations of gumballs Ms. Hernandez could accept gotten. PenniesColor 1st PennyRed 2nd PennyWhite 3rd Penny Red st PennyWhite 2nd PennyRed 3rd PennyWhite 2. The present day Ms. Hernandez and her twins by another gumball agent following a while three speciousnesss, red, speciousnessless, and cerulean and frequently her twins insufficiency the selfselfidentical speciousness. The most Ms. Hernandez force accept to consume is 4 cents. This is consequently she could get the following: PenniesColor 1stRed 2ndWhite 3rdBlue 4thWhite 3. Seven cents is the most Mr. Hodges force accept to consume to get his triplets the selfselfidentical speciousness gumballs at the selfselfidentical three-speciousness gumball agent as Ms. Hernandez. This is consequently he could get the following: PenniesColors 1st pennyBlue 2nd pennyRed 3rd pennyWhite 4th pennyWhite 5th pennyBlue 6th penny Red 7th pennyBlue 4. The present day Mr. Hodges byes a two-speciousness (red and speciousnessless) gumball agent following a while his triplets frequently, they each insufficiency the selfselfidentical speciousness. The most Mr. Hodges would accept to consume is 5 cents. This is consequently he can get the following: PenniesColor 1st pennyRed 2nd pennyWhite 3rd pennyWhite 4th pennyRed 5th pennycolorless . The formula I fix to explain these gists is: [(# of speciousnesss)(of kids)]- [(#of speciousnesss)-1]= how considerable currency they want to consume. Ex of formula for interrogation #1 is: [(2 speciousnesss)(2 kids)]-[(2 speciousnesss)-1]= 3 cents Ex of formula for interrogation #2 is: [(3 speciousnesss)(2 kids)]- [(3 speciousnesss)-1]= 4 cents Ex of formula for interrogation #3 is: [(3 speciousnesss)(3kids)]-[(3 speciousnesss)-1]= 7 cents Ex of formula for interrogation #4 is: [(2 speciousnesss)(3 kids)]-[(2 speciousnesss)-1]= 5 centsI figured this formula out by letter out how kids and speciousnesss in each gist and then the apex total gone-by following I fix each reply. Ex: Gist 1: 2 kids, 2 speciousnesss, max gone-by: 4. I knew that two this wanted to be divers and this wanted to be subtracted so I did a suppose and restrain until I fix the reply.