CS concept: Binary numbers
Each pumpkin is a bit worth 1, 2, 4, 8... Tap pumpkins to light them until the lit ones add up to the target number.