Miss Doyle is buying 37 pencils. She can buy them in packs of 10 pencils or as single pencils. What are all the different ways Miss Doyle can buy the pencils?