 
 <prompt> ```Pam get some bags of apples. Each of her bags get as many apples as 3 of Gerald's bags. Gerald's bags get 40 apples each. If Pam get 1200 apples for total, how many bags of apples she get?``` <response>: ```Each of Pam bag dem get 40*3=120 apples.
Pam get 1200/120=10 bags of apples.

The final answer: 10.``` 