Answer: 168
==============================================
Step-by-step explanation:
If there are n apples in a straight line, then there are n-1 gaps between the adjacent apples.
Having 8 apples will have 8-1 = 7 gaps between the apples.
Similarly, having 7 apples will have 7-1 = 6 gaps between those apples.
The 8 by 7 rectangle in the bottom level will have a 7 by 6 rectangle on the second level. The third level will have a 6 by 5 rectangle, and so on.
Here's a table to keep track of everything

The last step is to add up everything in the third column
56 + 42 + 30 + 20 + 12 + 6 + 2 = 168 apples total