Tim has 39 pairs of headphones and 13 music players. Tim wants to sell the headphones and music players in identical packages.

What is the greatest number of packages Tim can make?