Hot Dogs and Buns

A Problem Solving Exercise

Have you ever noticed that hot dogs come in packages of ten, but hot dog buns come in packages of eight? That means when you’ve eaten eight hot dogs with buns, you still have two hot dogs left over. What are you going to do, eat them without the buns? You could go back to the store and buy another package of buns, but then you will have four buns left over. Then you have to go back and buy more hot dogs...

What is the least number of packages of each you can buy and have exactly one hot dog for each bun?