John buys some boxes of pencils and some packets of pens for people to use at a conference.

There are 40 pencils in a box.
There are 15 pens in a packet.

John gives one pencil and one pen to each person at the conference.
He has no pencils left.
He has no pens left.

What is the smallest number of boxes of pencils and smallest number of packets of pens that John bought?