Noah’s family bought some fruit bars to put in the gift bags. They bought one box each of four flavors: apple, strawberry, blueberry, and peach. The boxes all had the same number of bars. Noah wanted to taste the flavors and ate one bar from each box. There were 28 bars left for the gift bags.

let x represent the number of bars originally packed in each box.

Since Noah ate 4 bars (one from each box), there were originally a total of 4x bars. After Noah ate his bars, there were 28 bars left for the gift bags.

So, we can write the equation:
4x - 4 = 28

Solving for x, we get:
4x = 32
x = 8

Therefore, there were originally 8 bars in each box.