To find the answer you need to find the least common multiple of each number.
8, 16, 24 12, 24
They both have 24 in common and it’s the lowest multiple of both numbers. So in turn to have the same number of them you would need to get 3 packs of burger patties and two packs of burgers.