Each of Pam's bags contain 40*3=<<40*3=120>>120 apples.
Pam has 1200/120=<<1200/120=10>>10 bags of apples.
#### 10