Mia bought 5 packs of gum. After giving 11 pieces to her niece, she put the remaining 29 pieces in her backpack. Write an equation to find the number of pieces in each pack.​