Mary has five packs of pencils. There are 9 pencils in each pack. John has 16 pencils. How many pencils do they have in all?