Barbara is making candy bars for her birthday party she has 24 lollypops 12 and 42 pieces of gum wants each bags have same number type candy?

Here's how to solve this problem:

1. Find the Greatest Common Factor (GCD):

* The GCD is the largest number that divides into all three numbers (lollipops, chocolate, and gum) without leaving a remainder.

* Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24

* Factors of 12: 1, 2, 3, 4, 6, 12

* Factors of 42: 1, 2, 3, 6, 7, 14, 21, 42

* The GCD of 24, 12, and 42 is 6.

2. Calculate the Number of Bags:

* Divide the number of each type of candy by the GCD:

* Lollipops: 24 / 6 = 4 bags

* Chocolate: 12 / 6 = 2 bags

* Gum: 42 / 6 = 7 bags

Answer: Barbara can make 6 bags of candy, with 4 lollipops, 2 chocolate pieces, and 7 pieces of gum in each bag.