Minimum amount of money that must be spent before three gumballs of the same color are dispense

A vending machine dispenses gumballs in a regular repeating cycle of ten different colors. If a quarter buys 3 gumballs, what is the minimum amount of money that must be spent before three gumballs of the same color are dispense?