In the first week, each day they pack 40*50 = <<40*50=2000>>2000 apples
The total number of apples packed in the boxes is 2000*7 = <<2000*7=14000>>14000 apples in the first week.
When 500 fewer apples were packed each day in the next week, the total became 2000-500 = <<2000-500=1500>>1500 apples per day.
The total number of apples packed in the boxes that week is 1500*7 = <<1500*7=10500>>10500 apples.
The total is 14000+10500 = <<14000+10500=24500>>24500 apples for the two weeks
#### 24500