Toothpick Squares

Ripeka and Jan were sitting around playing with toothpicks when Ripeka started to make a pattern of squares.

ToothPick.gif (1159 bytes)

How many toothpicks would she need to make a pattern like this that had 9 squares?