Final answer:
David would need to buy 3 packs of hot dogs (8 hot dogs each) and 4 packs of buns (6 buns each) to have an equal amount of both.
Step-by-step explanation:
To find the least amount of packs of hotdogs and buns that David can buy so he has an equal amount of both, we need to find the least common multiple (LCM) of 8 and 6. The LCM is the smallest number that both 8 and 6 divide into evenly.
The prime factorization of 8 is 2 x 2 x 2, and the prime factorization of 6 is 2 x 3. To find the LCM, we need to take the highest power of each prime factor that appears in either number. So the LCM of 8 and 6 is 2 x 2 x 2 x 3 = 24.
Therefore, David would need to buy 3 packs of hot dogs (8 hot dogs each) and 4 packs of buns (6 buns each) to have an equal amount of both.