Ms. Williams purchased pencils and erasers. Pencils are sold in packages of 8. Erasers are sold in packages of 12. What is the fewest number of packages Mrs. Williams can buy to have an equal number of pencils and erasers?