Olivia wants to make math party bags. She has 24 pencils and 4 erasers. If she makes the maximum number of possible bags, how many pencils will be in each one?