Answer: He bought 3 boxes of pencils and 8 boxes of pens.
Explanation:
Multiples of 15: 15, 30, 45, 60, 75, 90, 105, 120
Mulitples of 40: 40, 80, 120
This means that there are 120 people at the conference, and that he bought 3 boxes of pencils (40x3=120) and 8 boxes of pens (15x8=120)