Your child is finding rules for growing and shrinking picture patterns and using the picture to justify the rule, for example 1 toothpick, then 3 for every square.
How to help: build a pattern with toothpicks, pasta or coins. Ask "What stays the same in every figure? What grows?" and "How many would the 20th one need?"
Common mistakes: counting shared toothpicks twice (4 toothpicks for every square gives 4 × squares, which is too many); finding the change but forgetting the part that stays the same; miscounting the figure number when working backward.