After restocking the vending machine, Sonya determined that 2 packs of mints were sold for every 6 packs of gum. If a total of 160 packs of candy were sold, how many were packs of gum?