Answer:
He needs to buy: 5 packages of hot dogs buns and 4 packages of hot dogs. He needs to buy forty of each.
Step-by-step explanation:
Need to calculate the least common denominator of the packages of hot dogs buns and the packages of hot dogs.
 10  8   2
  5   4  2
   5   2  2
   5   1   5
   5
LCD = 2x2x2x5 = 40
To know the number of packages divide the LCD by the initial quantities
# packages of hot dogs buns = 40/8 = 5
# packages of hot dogs = 40/10 = 4