So for the tenth figure you would have 58 toothpicks on the bottom layer and then because for all the layers above you wouldn't need a base, you would just find the number in the next row and from there keep subtracting 4:
58
35
31
27
23
19
15
11
7
3
Now add all these numbers and you should get a total of 229